/* Birth Chart Intake Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Raleway:wght@300;400;500&display=swap');

/* Container */
.birthchart-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0d0d2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Raleway', sans-serif;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.birthchart-container *,
.birthchart-container *::before,
.birthchart-container *::after {
    box-sizing: border-box;
}



/* Landing hero styles for templates/form-template.php. Scoped to Step 0 only. */
.birthchart-landing {
    width: 100%;
    position: relative;
    z-index: 2;
}

.birthchart-landing .birthchart-landing-content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    color: #f5f0e8;
}

.birthchart-landing .birthchart-hero-orb {
    width: 116px;
    height: 116px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthchart-landing .birthchart-orb-glow {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231,204,151,.28), rgba(231,204,151,.08) 55%, transparent 76%);
    box-shadow: 0 0 44px rgba(231,204,151,.14);
}

.birthchart-landing .birthchart-orb-ring,
.birthchart-landing .birthchart-orb-ring-2 {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(199,169,125,.38);
}

.birthchart-landing .birthchart-orb-ring { inset: 0; }

.birthchart-landing .birthchart-orb-ring-2 {
    inset: 12px;
    border-color: rgba(199,169,125,.24);
}

.birthchart-landing .birthchart-orb-symbol {
    position: relative;
    color: #d8bd83;
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    line-height: 1;
    transform: translateY(-2px);
}

.birthchart-landing .birthchart-limited-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    margin: 0 0 46px;
    padding: 0 44px;
    border: 1px solid rgba(221,190,130,.68);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    box-shadow: 0 0 34px rgba(221,190,130,.28), inset 0 0 20px rgba(255,255,255,.025);
    color: #d6b978;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.birthchart-landing .birthchart-limited-icon {
    letter-spacing: 0;
    font-size: 24px;
}

.birthchart-landing .birthchart-hero-title {
    max-width: 760px;
    margin: 0 auto 28px;
    font-family: 'Cormorant Garamond', serif;
    color: #f7f2ea;
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: 0;
}

.birthchart-landing .birthchart-hero-subtitle {
    margin: 0 0 42px;
    color: #d1b980;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: 1.5px;
}

.birthchart-landing .birthchart-cosmic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0 0 44px;
    color: rgba(199,169,125,.62);
    font-size: 22px;
}

.birthchart-landing .birthchart-hero-desc {
    max-width: 760px;
    margin: 0 auto 58px;
    color: rgba(230,226,238,.72);
    font-size: 22px;
    line-height: 1.7;
}

.birthchart-landing .birthchart-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 520px;
    min-height: 96px;
    margin: 28px auto 54px;
    padding: 0 54px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d9bd84 0%, #ecd7aa 48%, #d9bd84 100%);
    color: #0d0d18;
    box-shadow: 0 18px 44px rgba(217,189,132,.22);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.birthchart-landing .birthchart-cta-icon {
    font-size: 18px;
    letter-spacing: 0;
}

.birthchart-landing .birthchart-trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 18px;
    color: rgba(230,226,238,.48);
    font-size: 18px;
}

.birthchart-landing .birthchart-trust-divider {
    color: rgba(199,169,125,.42);
}

.birthchart-stars,
.birthchart-stars-2,
.birthchart-stars-3 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.9), transparent),
        radial-gradient(2px 2px at 90px 120px, rgba(255,255,255,.65), transparent),
        radial-gradient(1px 1px at 180px 70px, rgba(255,255,255,.78), transparent),
        radial-gradient(2px 2px at 260px 170px, rgba(199,169,125,.55), transparent),
        radial-gradient(1px 1px at 330px 40px, rgba(255,255,255,.7), transparent),
        radial-gradient(2px 2px at 440px 220px, rgba(255,255,255,.62), transparent);
    background-size: 520px 310px;
    opacity: .64;
}

.birthchart-stars-2 {
    background-size: 760px 430px;
    background-position: 80px 40px;
    opacity: .34;
}

.birthchart-stars-3 {
    background-size: 980px 560px;
    background-position: 160px 90px;
    opacity: .22;
}

@media (max-width: 760px) {
    .birthchart-landing .birthchart-hero-orb {
        width: 92px;
        height: 92px;
        margin-bottom: 22px;
    }

    .birthchart-landing .birthchart-orb-symbol { font-size: 50px; }

    .birthchart-landing .birthchart-limited-banner {
        min-height: 54px;
        margin-bottom: 30px;
        padding: 0 22px;
        font-size: 13px;
        letter-spacing: 3.2px;
    }

    .birthchart-landing .birthchart-hero-title {
        font-size: 43px;
        line-height: 1.16;
        margin-bottom: 20px;
    }

    .birthchart-landing .birthchart-hero-subtitle {
        font-size: 23px;
        margin-bottom: 30px;
    }

    .birthchart-landing .birthchart-cosmic-divider { margin-bottom: 28px; }

    .birthchart-landing .birthchart-hero-desc {
        font-size: 17px;
        margin-bottom: 34px;
    }

    .birthchart-landing .birthchart-cta-btn {
        min-width: 0;
        width: 100%;
        min-height: 72px;
        margin: 22px auto 34px;
        padding: 0 20px;
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .birthchart-landing .birthchart-trust-signals {
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 15px;
    }
}

/* Stars Background */
.birthchart-stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 370px 60px, #fff, transparent),
        radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.8), transparent);
    background-size: 500px 200px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Card */
.birthchart-card {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.9) 0%, rgba(20, 20, 45, 0.95) 100%);
    border-radius: 24px;
    padding: 48px;
    max-width: 560px;
    width: 100%;
    border: 1px solid rgba(199, 169, 125, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

/* Header */
.birthchart-header {
    text-align: center;
    margin-bottom: 32px;
}

.birthchart-moon-icon {
    font-size: 48px;
    color: #c7a97d;
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.birthchart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: #f5f0e8;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.birthchart-subtitle {
    color: rgba(199, 169, 125, 0.8);
    font-size: 15px;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Progress */
.birthchart-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

.birthchart-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(199, 169, 125, 0.1);
    border: 2px solid rgba(199, 169, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(199, 169, 125, 0.5);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.birthchart-progress-dot.active {
    background: linear-gradient(135deg, #c7a97d 0%, #a08060 100%);
    border: 2px solid #c7a97d;
    color: #1a1a3a;
    box-shadow: 0 0 20px rgba(199, 169, 125, 0.4);
}

.birthchart-progress-line {
    width: 60px;
    height: 2px;
    background: rgba(199, 169, 125, 0.2);
    transition: all 0.3s ease;
}

.birthchart-progress-line.active {
    background: linear-gradient(90deg, #c7a97d, rgba(199, 169, 125, 0.5));
}

/* Steps */
.birthchart-step {
    margin-bottom: 32px;
}

.birthchart-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: #f5f0e8;
    margin: 0 0 8px 0;
    text-align: center;
}

.birthchart-step-desc {
    color: rgba(245, 240, 232, 0.6);
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Form Fields */
.birthchart-field {
    margin-bottom: 24px;
    flex: 1;
}

.birthchart-field label {
    display: block;
    color: #c7a97d;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.birthchart-field input[type="text"],
.birthchart-field input[type="email"],
.birthchart-field input[type="date"],
.birthchart-field input[type="time"],
.birthchart-field textarea,
.birthchart-field select {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(199, 169, 125, 0.2);
    border-radius: 12px;
    color: #f5f0e8;
    font-size: 15px;
    font-family: 'Raleway', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.birthchart-field input:focus,
.birthchart-field textarea:focus,
.birthchart-field select:focus {
    border-color: rgba(199, 169, 125, 0.5);
    box-shadow: 0 0 20px rgba(199, 169, 125, 0.15);
}

.birthchart-field input::placeholder,
.birthchart-field textarea::placeholder {
    color: rgba(245, 240, 232, 0.3);
}

.birthchart-field input:disabled,
.birthchart-field select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.birthchart-field textarea {
    resize: vertical;
    min-height: 100px;
}

.birthchart-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c7a97d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    height: auto;
    min-height: 52px;
}

.birthchart-field select option {
    background: #1a1a3a;
    color: #f5f0e8;
}

/* DOB Selects */
.birthchart-dob-selects {
    display: flex;
    gap: 12px;
}

.birthchart-dob-selects select {
    flex: 1;
    min-width: 0;
    text-overflow: ellipsis;
}

.birthchart-dob-selects select:first-child {
    flex: 2;
    min-width: 140px;
}

.birthchart-dob-selects select:nth-child(2) {
    flex: 1;
    min-width: 80px;
}

.birthchart-dob-selects select:nth-child(3) {
    flex: 1.2;
    min-width: 100px;
}

/* Time Selects */
.birthchart-time-selects {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
}

.birthchart-time-selects select {
    width: 70px;
    text-align: center;
    padding-left: 10px;
    padding-right: 30px;
}

.birthchart-time-separator {
    color: #c7a97d;
    font-size: 20px;
    font-weight: bold;
}

.birthchart-hint {
    display: block;
    color: rgba(245, 240, 232, 0.4);
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

.birthchart-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.7) !important;
    font-size: 14px !important;
    margin-top: 12px;
    cursor: pointer;
    text-transform: none !important;
}

.birthchart-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.birthchart-row {
    display: flex;
    gap: 16px;
}

/* Focus Area Grid */
.birthchart-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.birthchart-focus-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(199, 169, 125, 0.15);
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
}

.birthchart-focus-card:hover {
    background: rgba(199, 169, 125, 0.08);
    border-color: rgba(199, 169, 125, 0.3);
}

.birthchart-focus-card.selected {
    background: rgba(199, 169, 125, 0.15);
    border: 1px solid rgba(199, 169, 125, 0.5);
    box-shadow: 0 0 30px rgba(199, 169, 125, 0.2);
}

.birthchart-focus-icon {
    font-size: 28px;
    color: #c7a97d;
}

.birthchart-focus-label {
    color: #f5f0e8;
    font-size: 14px;
    font-weight: 500;
}

.birthchart-focus-desc {
    color: rgba(245, 240, 232, 0.5);
    font-size: 11px;
    text-align: center;
}

/* Navigation */
.birthchart-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.birthchart-btn-back {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(199, 169, 125, 0.3);
    border-radius: 12px;
    color: #c7a97d;
    font-size: 15px;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birthchart-btn-back:hover {
    background: rgba(199, 169, 125, 0.1);
    border-color: rgba(199, 169, 125, 0.5);
}

.birthchart-btn-next,
.birthchart-btn-submit {
    flex: 1;
    padding: 14px 28px;
    background: linear-gradient(135deg, #c7a97d 0%, #a08060 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a3a;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birthchart-btn-submit {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.birthchart-btn-next:hover,
.birthchart-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 169, 125, 0.3);
}

.birthchart-btn-next:disabled,
.birthchart-btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Privacy Note */
.birthchart-privacy {
    text-align: center;
    color: rgba(245, 240, 232, 0.4);
    font-size: 12px;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Success Message */
.birthchart-success {
    text-align: center;
    padding: 20px 0;
}

.birthchart-cosmic-orb {
    font-size: 64px;
    color: #c7a97d;
    margin-bottom: 24px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(199, 169, 125, 0.3); }
    50% { text-shadow: 0 0 40px rgba(199, 169, 125, 0.6), 0 0 60px rgba(199, 169, 125, 0.3); }
}

.birthchart-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: #f5f0e8;
    margin: 0 0 16px 0;
}

.birthchart-success-text {
    color: rgba(245, 240, 232, 0.7);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.birthchart-star-divider {
    color: #c7a97d;
    letter-spacing: 8px;
    font-size: 18px;
}

/* Error Message */
.birthchart-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.birthchart-error-text {
    color: #ff6b6b;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Loading State */
.birthchart-btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .birthchart-card {
        padding: 32px 24px;
    }
    
    .birthchart-title {
        font-size: 26px;
    }
    
    .birthchart-focus-grid {
        grid-template-columns: 1fr;
    }
    
    .birthchart-row {
        flex-direction: column;
        gap: 0;
    }
    
    .birthchart-progress-line {
        width: 40px;
    }
    
    .birthchart-dob-selects {
        flex-wrap: wrap;
    }
    
    .birthchart-dob-selects select {
        min-width: calc(50% - 6px);
    }
    
    .birthchart-dob-selects select:first-child {
        min-width: 100%;
    }
}