/* Booking Form Styles — inline form (no popup). The shortcode renders the
   form directly so a Bricks (or any other) popup can wrap it externally. */

/* Outer container */
.bkf-container {
    width: 100%;
    box-sizing: border-box;
}

.bkf-form-wrapper {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.bkf-form-header {
    background: #fff;
    color: #000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d5d5d5;
    gap: 20px;
}

.bkf-form-body {
    padding: 30px;
}

/* Steps counter */
.bkf-steps-counter {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: #1DA5E7;
}

/* Header center section */
.bkf-header-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.bkf-header-center .bkf-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #efefef;
    border-radius: 30px;
    overflow: hidden;
}

.bkf-header-center .bkf-progress-fill {
    height: 100%;
    background: #1DA5E7;
    border-radius: 30px;
    transition: width 0.3s ease;
    width: 0;
}

.bkf-current-step-title {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: center;
    flex-shrink: 0;
}

/* Form steps */
.bkf-step-content {
    display: none;
    animation: stepFadeIn 0.3s ease;
}

.bkf-step-content.active {
    display: block;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.bkf-step-title {
    color: #000;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 500;
    text-align: left;
}

.bkf-step-description {
    color: #555;
    margin-bottom: 25px;
    text-align: left;
    font-size: 20px;
}

/* Inline form fields */
.bkf-form-group {
    margin-bottom: 25px;
}

.bkf-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000;
    font-size: 14px;
}

.bkf-form-group input,
.bkf-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #b9b9b9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.bkf-form-group input:focus,
.bkf-form-group select:focus {
    outline: none;
    border-color: #1DA5E7;
}

.bkf-form-group input.success { border-color: #1DA5E7 !important; }
.bkf-form-group input.warning { border-color: #ffc107 !important; }
.bkf-form-group input.error   { border-color: #dc3545 !important; }

/* Generic option grid (used by stacked / 2-column lists) */
.bkf-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.bkf-option {
    position: relative;
}

.bkf-option input[type="radio"],
.bkf-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bkf-option label {
    display: block;
    padding: 12px 16px;
    background-color: #efefef;
    border: 1px solid #b9b9b9;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0;
}

.bkf-option label:hover {
    background-color: #f8f9fa;
    border-color: #000;
}

.bkf-option input:checked + label {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* Stacked option buttons (vertical, full-width) */
.bkf-options.bkf-options-stacked {
    grid-template-columns: 1fr;
    gap: 12px;
}

.bkf-options-stacked .bkf-option label {
    text-align: left;
    padding: 12px 18px;
    background-color: #fff;
    color: #000;
}

/* 2-column option buttons (50/50 row, e.g. Yes/No) */
.bkf-options.bkf-options-2col {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bkf-options-2col .bkf-option label {
    background-color: #fff;
    color: #000;
    padding: 10px 16px;
}

/* Question block for inline yes/no rows */
.bkf-question-group {
    margin-bottom: 20px;
}

.bkf-question-group .bkf-question-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #000;
    font-size: 16px;
}

/* Property type options with icons (pool / spa) */
.bkf-property-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.bkf-property-option {
    position: relative;
}

.bkf-property-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bkf-property-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px 12px;
    background-color: #fff;
    border: 1px solid #b9b9b9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 0;
    min-height: 80px;
    justify-content: center;
    gap: 8px;
}

.bkf-property-option label:hover {
    background-color: #f8f9fa;
    border-color: #000;
}

.bkf-property-option input:checked + label {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.bkf-property-icon {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bkf-property-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bkf-property-option input:checked + label .bkf-property-icon img {
    filter: brightness(0) invert(1);
}

.bkf-property-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: center;
    line-height: 1.2;
}

.bkf-property-option input:checked + label .bkf-property-text {
    color: #fff;
}

/* Navigation buttons */
.bkf-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d5d5d5;
    gap: 15px;
}

.bkf-navigation .bkf-btn-back {
    width: 100%;
    text-align: center;
}

.bkf-navigation .bkf-btn-next,
.bkf-navigation .bkf-btn-submit {
    width: 100%;
    text-align: center;
}

#bkf-navigation-buttons {
    width: 100%;
}

/* Step 1 specific - Next button takes full width when back button is hidden */
.bkf-navigation.step-1-nav .bkf-btn-next {
    flex: 0 0 100%;
}

.bkf-btn-back {
    background: #fff;
    color: #7b7b7b;
    padding: 12px 24px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bkf-btn-back:hover {
    background: #000;
    color: #fff;
}

.bkf-btn-next,
.bkf-btn-submit {
    background: #1DA5E7;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bkf-btn-next:hover,
.bkf-btn-submit:hover {
    background: #78d1ff;
}

/* Loading state */
.bkf-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.bkf-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1DA5E7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.bkf-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.bkf-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bkf-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .bkf-form-wrapper {
        max-width: 100%;
        border-radius: 8px;
    }

    .bkf-form-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .bkf-steps-counter {
        text-align: center;
        font-size: 14px;
    }

    .bkf-header-center {
        margin: 0;
        order: 2;
    }

    .bkf-current-step-title {
        font-size: 14px;
    }

    .bkf-form-body {
        padding: 20px;
    }

    .bkf-options {
        grid-template-columns: 1fr;
    }

    .bkf-property-type-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .bkf-property-option label {
        padding: 16px 12px 12px;
        min-height: 85px;
        gap: 8px;
    }

    .bkf-property-icon {
        width: 64px;
        height: 64px;
    }

    .bkf-property-text {
        font-size: 13px;
    }

    .bkf-step-title {
        font-size: 24px;
    }

    .bkf-step-description {
        font-size: 16px;
    }

    .bkf-navigation {
        justify-content: space-between;
        gap: 15px;
    }

    .bkf-btn-back,
    .bkf-btn-next,
    .bkf-btn-submit {
        width: auto;
        padding: 14px 24px;
    }

    .bkf-navigation .bkf-btn-back {
        flex: 0 0 30%;
    }

    .bkf-navigation .bkf-btn-next,
    .bkf-navigation .bkf-btn-submit {
        flex: 0 0 65%;
    }

    .bkf-navigation.step-1-nav .bkf-btn-next {
        flex: 0 0 100%;
    }
}
