/* AstroLeaf Marriage Timing Predictor - Universal Design Theme */
:root {
    --mar-bg: #FFFBF4;
    --mar-surface: #FFEFD6;
    --mar-border: #65250C;
    --mar-border-focus: #65250C;
    --mar-text-primary: #65250C;
    --mar-text-secondary: #4A2810;
    --mar-text-muted: #65250C;
    --mar-accent-rose: #65250C;
    --mar-accent-rose-soft: #FFF7E8;
    --mar-accent-rose-border: #65250C;
    --mar-accent-amber: #FF9C1A;
}

html body {
    background-color: var(--mar-bg) !important;
    color: var(--mar-text-primary) !important;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif !important;
    line-height: 1.6 !important;
}

html body .mar-hero {
    position: relative !important;
    background: #F97316 !important;
    border-bottom: 1px solid #65250C !important;
    padding: 46px 20px !important;
    text-align: center !important;
    color: #FFFFFF !important;
}

html body .mar-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    background: #FFF7E8 !important;
    border: 1px solid #65250C !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    margin-bottom: 16px !important;
}

html body .mar-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: #FFBA5F !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.25 !important;
}

html body .mar-hero-sub {
    font-size: 1.05rem !important;
    color: #FFE2C2 !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

html body .mar-form-card,
html body .aap-form-card,
html body .kl-form-card,
html body .ud-form-card {
    background-color: #FFFDF9 !important;
    background: #FFFDF9 !important;
    border: 1px solid rgba(217, 119, 6, 0.22) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin: 28px auto !important;
    max-width: 840px !important;
    box-shadow: 0 8px 30px rgba(42, 21, 10, 0.05) !important;
}

html body .mar-form-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #2A150A !important;
    margin: 0 0 24px 0 !important;
    border: none !important;
    padding-bottom: 0 !important;
}

html body .pkr-field-label {
    display: block !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #36190B !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

html body .cd-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
}

html body .cd-input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: #D97706 !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .cd-input-icon i,
html body .cd-input-icon svg {
    color: #D97706 !important;
    fill: #D97706 !important;
    font-size: 1rem !important;
    width: 18px !important;
    height: 18px !important;
}

html body .cd-input-wrapper input,
html body .cd-input-wrapper select,
html body .cd-input-wrapper .wy-input,
html body .cd-input-wrapper .wy-select,
html body .wy-input,
html body input.wy-input,
html body select.wy-select,
html body .mar-input,
html body input.aap-input,
html body input.cd-input,
html body input.kl-input,
html body input.ud-input,
html body select.aap-input,
html body select.aap-select,
html body select.cd-input,
html body select.kl-select,
html body select.ud-select,
html body input[type="text"],
html body input[type="number"],
html body input[type="date"],
html body input[type="time"] {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #1E293B !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    outline: none !important;
    line-height: 46px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

html body input::placeholder {
    color: #94A3B8 !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

html body .cd-input-wrapper select,
html body .cd-input-wrapper select.wy-select,
html body select.wy-select,
html body select.aap-select,
html body select.kl-select,
html body select.ud-select {
    padding-left: 14px !important;
    padding-right: 36px !important;
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-align: left !important;
    text-align-last: left !important;
    cursor: pointer !important;
}

html body select option {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    font-weight: 600 !important;
}

html body .cd-input-wrapper input:focus,
html body .cd-input-wrapper select:focus,
html body .wy-input:focus,
html body .mar-input:focus,
html body input:focus,
html body select:focus {
    border-color: #D97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16) !important;
    background-color: #FFFFFF !important;
    outline: none !important;
}

/* Clear Cross Button */
html body #clear-pob,
#clear-pob {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #D97706 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    z-index: 10 !important;
    box-shadow: none !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
}

html body #clear-pob:hover,
#clear-pob:hover {
    color: #DC2626 !important;
    transform: translateY(-50%) scale(1.15) !important;
}

html body .mar-submit-btn,
html body .pay-now-hero-btn,
html body .kl-btn-submit,
html body .ud-btn-submit {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #F97316 !important;
    color: #FFFFFF !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.02rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

html body .mar-submit-btn:hover,
html body .pay-now-hero-btn:hover,
html body .kl-btn-submit:hover,
html body .ud-btn-submit:hover {
    background: #EA580C !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4) !important;
    color: #FFFFFF !important;
}

/* Result Window Cards & Results Container Full-Width Stretching */
html body #calc-results,
html body .checkout-wrapper #calc-results,
#calc-results {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

html body #calc-results > div,
html body #calc-results .mar-hero-banner,
html body #calc-results .mar-window-card,
html body #calc-results .mar-result-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body #calc-results .mar-hero-banner,
html body .mar-hero-banner,
.mar-hero-banner {
    background: #F97316 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 14px !important;
    padding: 28px 32px !important;
    color: #FFFFFF !important;
    margin-bottom: 24px !important;
    box-shadow: rgba(9, 30, 66, 0.15) 0px 4px 14px -2px !important;
}

html body #calc-results .mar-hero-banner .wy-badge-chip,
html body .mar-hero-banner .wy-badge-chip {
    background: #FFBA5F !important;
    color: #4A1A08 !important;
    border: 1px solid #FFD494 !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

html body .mar-window-card {
    background: #FFEFD6 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 14px !important;
    padding: 24px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: rgba(9, 30, 66, 0.12) 0px 4px 14px -2px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body .mar-window-card:hover {
    border-color: #65250C !important;
}

html body .mar-window-tag {
    padding: 3px 10px !important;
    border-radius: 50px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background: #FFE2C2 !important;
    color: #65250C !important;
    border: 1px solid #65250C !important;
}

/* Mobile Responsive Optimization - 1 Element Per Row on Mobile */
.kl-form-grid, .ud-form-grid, #marriage-timing-form, .ale-universal-form-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    html body .mar-hero,
    html body .pkr-hero-banner {
        padding: 32px 16px !important;
    }
    html body .mar-hero-title,
    html body .pkr-hero-title {
        font-size: 1.6rem !important;
    }
    html body .mar-hero-sub,
    html body .pkr-hero-sub {
        font-size: 0.92rem !important;
    }
    html body .checkout-wrapper {
        padding: 0 14px !important;
        margin: 16px auto !important;
    }
    html body .mar-form-card,
    html body .aap-form-card,
    html body .kl-form-card,
    html body .ud-form-card {
        padding: 20px 16px !important;
        margin: 16px auto !important;
        border-radius: 12px !important;
    }
    html body .kl-form-grid,
    html body .ud-form-grid,
    html body #marriage-timing-form,
    html body .ale-universal-form-container,
    .kl-form-grid,
    .ud-form-grid,
    #marriage-timing-form,
    .ale-universal-form-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    html body .kl-sub-select-grid,
    html body .ud-sub-select-grid,
    .kl-sub-select-grid,
    .ud-sub-select-grid {
        gap: 6px !important;
    }
    html body .kl-sub-select-grid select,
    html body .ud-sub-select-grid select,
    .kl-sub-select-grid select,
    .ud-sub-select-grid select {
        padding-left: 6px !important;
        padding-right: 20px !important;
        font-size: 0.86rem !important;
        background-position: right 6px center !important;
    }
    html body .mar-submit-btn,
    html body .pay-now-hero-btn,
    html body .kl-btn-submit,
    html body .ud-btn-submit {
        height: 48px !important;
        font-size: 0.95rem !important;
    }
    html body .mar-hero-banner {
        padding: 20px 16px !important;
    }
    html body .mar-hero-banner h2 {
        font-size: 1.45rem !important;
    }
    html body .wy-table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        width: 100% !important;
    }
    html body .wy-table {
        min-width: 520px !important;
    }
    html body .wy-table th:first-child {
        position: sticky !important;
        left: 0 !important;
        background: #FFE2C2 !important;
        z-index: 2 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.06) !important;
    }
    html body .wy-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: #FFF7E8 !important;
        z-index: 2 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.06) !important;
    }
}

@media (max-width: 480px) {
    html body .checkout-wrapper {
        padding: 0 10px !important;
    }
    html body .mar-form-card,
    html body .aap-form-card,
    html body .kl-form-card,
    html body .ud-form-card {
        padding: 16px 12px !important;
    }
    html body .mar-hero-title,
    html body .pkr-hero-title {
        font-size: 1.4rem !important;
    }
    html body .kl-sub-select-grid select,
    html body .ud-sub-select-grid select,
    .kl-sub-select-grid select,
    .ud-sub-select-grid select {
        font-size: 0.82rem !important;
        padding-left: 4px !important;
        padding-right: 18px !important;
    }
}
