/* ═══════════════════════════════════════════════════════════════════════════
   OLIVRR MEDIA — Contact Form Popup Styles
   Fullscreen overlay · Mobile-first · Satisfying animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Overlay ─── */
.cf-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg-primary, #0c0a09);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fafaf9;
    -webkit-font-smoothing: antialiased;
}
.cf-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ─── Background Glows ─── */
.cf-bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.cf-bg-glow-1 {
    width: 500px; height: 500px;
    background: rgba(249, 115, 22, 0.06);
    top: -100px; right: -200px;
}
.cf-bg-glow-2 {
    width: 400px; height: 400px;
    background: rgba(245, 158, 11, 0.04);
    bottom: -100px; left: -150px;
}

/* ─── Header ─── */
.cf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 10, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cf-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fafaf9;
    text-decoration: none;
}
.cf-logo span { color: #f97316; }
.cf-close {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: rgba(250, 250, 249, 0.7);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cf-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fafaf9;
}

/* ─── Progress Bar ─── */
.cf-progress {
    position: fixed;
    top: 65px; left: 0; right: 0;
    z-index: 9;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}
.cf-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #f97316, #f59e0b, #fbbf24);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
    width: 0%;
}

/* ─── Toast ─── */
.cf-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}
.cf-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ─── Body / Scroll Container ─── */
.cf-body {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 80px 1rem 3rem;
    display: flex;
    justify-content: center;
}
.cf-container {
    width: 100%;
    max-width: 600px;
    margin-top: auto;
    margin-bottom: auto;
    min-height: 0;
}

/* ─── Honeypot ─── */
.cf-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0; width: 0;
    overflow: hidden;
}

/* ─── Steps ─── */
.cf-step {
    display: none;
    opacity: 0;
}
.cf-step.active {
    display: block;
    opacity: 1;
    animation: cfFadeSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes cfFadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Step Header ─── */
.cf-step-header {
    margin-bottom: 2rem;
}
.cf-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
.cf-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 50%;
    color: #0c0a09;
    font-size: 0.75rem;
    font-weight: 700;
}
.cf-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.cf-subtitle {
    color: rgba(250, 250, 249, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* ─── Fields ─── */
.cf-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.cf-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(250, 250, 249, 0.7);
    margin-bottom: 0.5rem;
}
.cf-req { color: #f97316; }
.cf-optional {
    font-size: 0.75rem;
    color: rgba(250, 250, 249, 0.5);
    font-weight: 400;
}
.cf-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fafaf9;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}
.cf-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    background: rgba(255, 255, 255, 0.05);
}
.cf-input::placeholder {
    color: rgba(250, 250, 249, 0.4);
}
.cf-textarea {
    min-height: 110px;
    resize: vertical;
}
.cf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cf-hint {
    display: block;
    font-size: 0.8125rem;
    color: rgba(250, 250, 249, 0.5);
    margin-top: 0.3rem;
}
.cf-err {
    display: none;
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 0.3rem;
}
.cf-field-error .cf-input {
    border-color: #ef4444;
}
.cf-field-error .cf-err {
    display: block;
}

/* ─── Option Buttons (satisfying, no checkboxes) ─── */
.cf-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cf-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.cf-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #fafaf9;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.cf-opt:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.cf-opt:active {
    transform: scale(0.97);
}

/* Selected state — satisfying! */
.cf-opt.selected {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
    border-color: #f97316;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}
.cf-opt.selected .cf-opt-indicator {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-color: transparent;
    transform: scale(1);
}
.cf-opt.selected .cf-opt-indicator svg {
    opacity: 1;
    transform: scale(1);
    stroke: #0c0a09;
}
.cf-opt.selected .cf-opt-icon {
    transform: scale(1.15);
}

/* Option parts */
.cf-opt-icon {
    font-size: 1.4rem;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cf-opt-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cf-opt-title {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
}
.cf-opt-desc {
    font-size: 0.8125rem;
    color: rgba(250, 250, 249, 0.5);
    line-height: 1.3;
}
.cf-opt-indicator {
    width: 24px; height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.9);
}
.cf-opt-indicator svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ripple effect */
.cf-opt-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    animation: cfRipple 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes cfRipple {
    from { opacity: 1; transform: scale(0.5); }
    to { opacity: 0; transform: scale(2); }
}

/* ─── Navigation Buttons ─── */
.cf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #fafaf9;
}
.cf-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
}
.cf-btn-back {
    background: transparent;
    color: rgba(250, 250, 249, 0.7);
    padding-left: 0.75rem;
}
.cf-btn-back:hover:not(:disabled) {
    color: #fafaf9;
}
.cf-btn-back:hover:not(:disabled) svg {
    transform: translateX(-3px);
}
.cf-btn-back svg {
    transition: transform 0.2s ease;
}
.cf-btn-primary {
    background: linear-gradient(135deg, #f97316, #f59e0b, #fbbf24);
    color: #0c0a09;
    padding: 0.875rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.cf-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(249, 115, 22, 0.25);
}
.cf-btn-primary:hover:not(:disabled) svg {
    transform: translateX(3px);
}
.cf-btn-primary svg {
    transition: transform 0.2s ease;
}
.cf-btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fafaf9;
}
.cf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Submit loading state */
.cf-submit.loading .cf-btn-label { display: none; }
.cf-submit.loading .cf-spinner { display: inline-block; }
.cf-spinner {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid rgba(12, 10, 9, 0.2);
    border-top-color: #0c0a09;
    border-radius: 50%;
    animation: cfSpin 0.6s linear infinite;
}
@keyframes cfSpin { to { transform: rotate(360deg); } }

/* ─── Custom Date Picker ─── */
.cf-datepicker-area {
    margin-top: 1.25rem;
    animation: cfStepIn 0.3s ease;
}
.cf-datepicker {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    max-width: 340px;
}
.cf-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.cf-dp-title {
    font-weight: 600;
    font-size: 1rem;
}
.cf-dp-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(250, 250, 249, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cf-dp-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafaf9;
}
.cf-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}
.cf-dp-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(250, 250, 249, 0.5);
    padding: 0.3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cf-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cf-dp-day, .cf-dp-empty {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    background: none;
    color: #fafaf9;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.cf-dp-day:hover:not(:disabled) {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}
.cf-dp-disabled {
    color: rgba(250, 250, 249, 0.2);
    cursor: not-allowed;
}
.cf-dp-today {
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.cf-dp-selected {
    background: linear-gradient(135deg, #f97316, #f59e0b) !important;
    color: #0c0a09 !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

/* ─── Success Screen ─── */
.cf-success {
    text-align: center;
    padding: 2rem 0;
}
.cf-success-icon {
    width: 100px; height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cfSuccessPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes cfSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); opacity: 1; }
}
.cf-success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}
.cf-success-text {
    font-size: 1.065rem;
    color: rgba(250, 250, 249, 0.7);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.cf-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Confetti ─── */
.cf-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
.cf-confetti-piece {
    position: absolute;
    top: -10px;
    animation: cfConfettiFall linear forwards;
}
@keyframes cfConfettiFall {
    to { top: 110vh; transform: rotate(720deg); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .cf-header {
        padding: 0.75rem 1rem;
    }
    .cf-close span { display: none; }
    .cf-close { padding: 0.5rem; }
    .cf-progress { top: 53px; }
    .cf-body {
        padding: 62px 1rem 1.5rem;
    }
    .cf-step-header {
        margin-bottom: 1.5rem;
    }
    .cf-title {
        font-size: 1.5rem;
    }
    .cf-subtitle {
        font-size: 0.9375rem;
    }
    .cf-field-row {
        grid-template-columns: 1fr;
    }
    .cf-options-grid {
        grid-template-columns: 1fr;
    }
    .cf-opt {
        padding: 0.875rem 1rem;
    }
    .cf-opt-icon {
        width: 40px; height: 40px;
        font-size: 1.2rem;
    }
    .cf-nav {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    .cf-success-actions {
        flex-direction: column;
        align-items: center;
    }
    .cf-datepicker {
        max-width: 100%;
    }
}

/* end of responsive */
