/* =========================================================
   ThemeForge Pro Photo Studio — Booking Form Styles
   Multi-step wizard + WhatsApp integration
   ========================================================= */

/* =========================================================
   FORM CONTAINER
   ========================================================= */

.tfps-booking-form {
    background: rgba(20, 20, 28, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--tfps-border, #2a2a35);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   STEP FIELDSETS
   ========================================================= */

.tfps-booking-step {
    border: 0;
    padding: 0;
    margin: 0;
    animation: stepFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tfps-booking-step[hidden] {
    display: none !important;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   STEP LEGEND (Number + Title)
   ========================================================= */

.tfps-booking-step__legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--tfps-text, #fafafa);
    margin-bottom: 1.5rem;
    padding: 0;
    line-height: 1.2;
}

.tfps-booking-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* =========================================================
   FORM FIELDS
   ========================================================= */

.tfps-booking-form .form-row {
    margin-bottom: 1.25rem;
}

.tfps-booking-form .form-row label {
    display: block;
    color: var(--tfps-text, #fafafa);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tfps-booking-form .form-row input.input-text,
.tfps-booking-form .form-row select,
.tfps-booking-form .form-row textarea {
    width: 100%;
    background: rgba(10, 10, 15, 0.6);
    color: var(--tfps-text, #fafafa);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tfps-booking-form .form-row input.input-text:focus,
.tfps-booking-form .form-row select:focus,
.tfps-booking-form .form-row textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    outline: none;
    background: rgba(10, 10, 15, 0.85);
}

.tfps-booking-form .form-row input.input-text::placeholder,
.tfps-booking-form .form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.tfps-booking-form .form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a855f7' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* =========================================================
   ACTIONS (Buttons Row)
   ========================================================= */

.tfps-booking-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tfps-border, #2a2a35);
}

.tfps-booking-actions .btn {
    min-width: 120px;
}

/* =========================================================
   STATUS MESSAGES
   ========================================================= */

.tfps-status {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border: 1px solid;
    line-height: 1.5;
}

.tfps-status--info {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c4b5fd;
}

.tfps-status--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.tfps-status--success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.tfps-status[hidden] {
    display: none;
}

/* =========================================================
   FIELD ERRORS
   ========================================================= */

.tfps-booking-form .form-row .has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.tfps-field-error {
    display: block;
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.btn--whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn--whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.btn--whatsapp svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* =========================================================
   DIRECT BOOKING OPTIONS (Below Form)
   ========================================================= */

.tfps-booking-direct {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tfps-booking-direct p {
    margin: 0 0 1rem;
    color: var(--tfps-muted, #8b8b9a);
    font-size: 0.95rem;
}

.tfps-booking-direct > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tfps-booking-direct .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* =========================================================
   SUCCESS SCREEN
   ========================================================= */

.tfps-booking-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.15);
    animation: successScreenIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successScreenIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tfps-booking-success[hidden] {
    display: none;
}

.tfps-booking-success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    animation: successPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.tfps-booking-success__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.tfps-booking-success__number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.tfps-booking-success__next {
    color: var(--tfps-muted, #8b8b9a);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.tfps-booking-success > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */

@media (max-width: 640px) {
    .tfps-booking-form {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .tfps-booking-step__legend {
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .tfps-booking-step__num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .tfps-booking-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .tfps-booking-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .btn--whatsapp {
        width: 100%;
    }

    .tfps-booking-direct > div {
        flex-direction: column;
        align-items: stretch;
    }

    .tfps-booking-direct .btn {
        width: 100%;
    }

    .tfps-booking-success {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .tfps-booking-success__icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .tfps-booking-success__title {
        font-size: 1.4rem;
    }

    .tfps-booking-success > div {
        flex-direction: column;
    }

    .tfps-booking-success > div .btn {
        width: 100%;
    }
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */

@media (min-width: 641px) and (max-width: 991px) {
    .tfps-booking-form {
        padding: 2rem 1.75rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .tfps-booking-step,
    .tfps-booking-success,
    .tfps-booking-success__icon,
    .tfps-field-error,
    .btn--whatsapp {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */

@media print {
    .tfps-booking-form,
    .tfps-booking-actions,
    .btn--whatsapp,
    .tfps-booking-direct {
        display: none !important;
    }
}