/* Family Readiness Check - One Page Budget */
/* Brand Colors: #240046 (Deep Purple), #B9B1FF (Lavender), #D1DE54 (Lime) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf8ff 100%);
    min-height: auto;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 20px;
}

/* Progress Bar */
.progress-container {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.back-btn,
.forward-btn {
    background: #B9B1FF;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-btn:hover,
.forward-btn:hover {
    background: #240046;
    transform: scale(1.05);
}

.back-btn i,
.forward-btn i {
    color: #240046;
    font-size: 18px;
}

.back-btn:hover i,
.forward-btn:hover i {
    color: white;
}

.progress-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #240046 0%, #B9B1FF 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #240046;
    font-weight: 500;
}

/* Question Cards */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(36, 0, 70, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.question-card.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-content {
    text-align: center;
}

.results-screen .card-content {
    padding-bottom: 60px;
}

/* Icons */
.icon-large {
    font-size: 80px;
    color: #B9B1FF;
    margin-bottom: 20px;
}

.icon-large.celebration {
    color: #D1DE54;
}

.question-icon {
    font-size: 60px;
    color: #B9B1FF;
    margin-bottom: 20px;
}

/* Typography */
h1 {
    font-size: 32px;
    color: #240046;
    margin-bottom: 15px;
    font-weight: 700;
}

h2 {
    font-size: 24px;
    color: #240046;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
    box-sizing: border-box;
    text-align: center;
}

.btn-primary {
    background: #D1DE54;
    color: #240046;
}

.btn-primary:hover {
    background: #c0cd40;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(209, 222, 84, 0.4);
}

.btn-secondary {
    background: #B9B1FF;
    color: #240046;
}

.btn-secondary:hover {
    background: #a89fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
    margin-top: 20px;
}

/* Option Buttons */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.option-btn {
    background: #f8f7ff;
    border: 2px solid #e0dcff;
    padding: 10px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #240046;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.option-btn:hover {
    background: #B9B1FF;
    border-color: #B9B1FF;
    transform: translateX(5px);
}

.option-btn.selected {
    background: #240046;
    color: white;
    border-color: #240046;
    transform: scale(1.02);
}

/* Reveal Cards */
.reveal-card {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f7ff 0%, #ede9ff 100%);
    border-radius: 15px;
    border: 2px solid #B9B1FF;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cost-reveal {
    background: linear-gradient(135deg, #fff8e6 0%, #fffbf0 100%);
    border-color: #f5d742;
}

.savings-reveal {
    background: linear-gradient(135deg, #e6fff2 0%, #f0fff8 100%);
    border-color: #4ade80;
}

.help-offer {
    background: linear-gradient(135deg, #ffe6f0 0%, #fff0f7 100%);
    border-color: #ff6b9d;
}

.cost-icon, .savings-icon, .help-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.cost-text, .cost-highlight, .savings-highlight, .help-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.cost-highlight, .savings-highlight {
    font-size: 18px;
    font-weight: 600;
    color: #240046;
}

.cost-amount, .savings-amount {
    color: #D1DE54;
    font-size: 22px;
    font-weight: 700;
}

.info-text {
    font-size: 16px;
    color: #666;
}

.success-text {
    font-size: 18px;
    color: #4ade80;
    font-weight: 600;
}

/* Cost Breakdown */
.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 10px;
}

.cost-value {
    font-weight: 600;
    color: #240046;
}

/* Education Comparison Visual */
.comparison-visual {
    margin-top: 20px;
}

.comparison-bar {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 100px;
}

.bar {
    flex: 1;
    background: #B9B1FF;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    color: white;
    font-weight: 600;
}

.public-bar {
    height: 40%;
    background: #4ade80;
}

.private-bar {
    height: 100%;
    background: #ff6b9d;
}

/* Help Options */
.help-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.help-question {
    font-size: 17px;
    font-weight: 600;
    color: #240046;
    margin-top: 15px;
}

/* Section Transitions */
.section-transition {
    background: linear-gradient(135deg, #240046 0%, #4a0082 100%);
    color: white;
}

.section-transition h2 {
    color: white;
}

.section-transition p {
    color: rgba(255, 255, 255, 0.9);
}

/* Loading Screen */
.loading-screen {
    min-height: 400px;
    display: none;
    opacity: 0;
}

.loading-screen.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #240046;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loader-text {
    font-size: 18px;
    color: #240046;
    font-weight: 500;
    text-align: center;
}

/* Results Screen */
.results-screen {
    min-height: 600px;
}

.results-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0 80px 0;
    font-family: 'Poppins', sans-serif;
}

/* Results Hero Section */
.results-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #FAFBFC 0%, #F3F4F6 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 40px 0;
    letter-spacing: -0.02em;
}

.gauge-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.gauge-chart {
    width: 240px;
    height: 156px;
    display: block;
}

.gauge-track {
    opacity: 0.3;
}

.gauge-fill {
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    text-align: center;
}

.gauge-value {
    font-size: 56px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gauge-percent {
    font-size: 32px;
    font-weight: 600;
    color: #6B7280;
}

.gauge-label {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* Dimension Bars */
.dimensions-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.dimension-bar {
    width: 100%;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #240046;
}

.bar-label .icon {
    font-size: 20px;
}

.bar-score {
    font-weight: 700;
    font-size: 18px;
    color: #240046;
}

.bar-track {
    height: 40px;
    background: #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.bar-financial {
    background: linear-gradient(90deg, #2563EB, #3B82F6);
}

.bar-childcare {
    background: linear-gradient(90deg, #A855F7, #EC4899);
}

.bar-readiness {
    background: linear-gradient(90deg, #10B981, #34D399);
}

/* Improvement Card */
.improvement-card {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f7ff 0%, #ede9ff 100%);
    border-radius: 15px;
    border: 2px solid #B9B1FF;
    text-align: center;
}

.improvement-title {
    font-size: 20px;
    font-weight: 700;
    color: #240046;
    margin: 0 0 12px 0;
}

.improvement-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.improvement-card .btn-large {
    margin-top: 0;
    width: 100%;
}

/* Email Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(36, 0, 70, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #240046;
}

#emailForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

#emailInput {
    padding: 15px;
    border: 2px solid #e0dcff;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

#emailInput:focus {
    outline: none;
    border-color: #B9B1FF;
}

/* Savings Counter */
.savings-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #D1DE54 0%, #c0cd40 100%);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(209, 222, 84, 0.4);
    z-index: 999;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
    }
    to {
        transform: translateX(0);
    }
}

.counter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.counter-label {
    font-size: 12px;
    color: #240046;
    font-weight: 500;
}

.counter-value {
    font-size: 18px;
    font-weight: 700;
    color: #240046;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-top: 90px;
    }

    .question-card {
        padding: 30px 20px;
    }
    
    .results-screen {
        padding-bottom: 100px;
    }
    
    .results-container {
        padding-bottom: 0;
    }
    
    .results-screen .card-content {
        padding-bottom: 80px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    .icon-large {
        font-size: 60px;
    }

    .question-icon {
        font-size: 50px;
    }

    .results-title {
        font-size: 32px;
    }
    
    .gauge-chart {
        width: 280px;
        height: 182px;
    }
    
    .gauge-value {
        font-size: 64px;
    }
    
    .gauge-percent {
        font-size: 36px;
    }

    .savings-counter {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        padding: 12px 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .back-btn,
    .forward-btn {
        width: 40px;
        height: 40px;
    }

    .back-btn i,
    .forward-btn i {
        font-size: 16px;
    }

    .progress-container {
        padding: 15px;
        gap: 10px;
    }
}

@media (max-width: 544px) {
    .btn {
        width: 100%;
        min-width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        margin: 0.5em 0;
        display: block;
        box-sizing: border-box;
    }

    .option-btn {
        width: 100%;
        min-width: 100%;
        padding: 7px 10px;
        font-size: 15px;
        margin: 0.5em 0;
        display: block;
        box-sizing: border-box;
    }

    .progress-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .option-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .progress-container {
        padding: 15px;
    }
}

/* Welcome Screen Features */
.welcome-features {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    padding: 0;
}

.welcome-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: #666;
}

.welcome-features li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #D1DE54;
    font-size: 24px;
    line-height: 1;
}

.disclaimer {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-top: 20px;
}

/* Prefer Not to Say Button */
.prefer-not-say-btn {
    background: #d4c4fc !important;
    color: #240046 !important;
    border-color: #d4c4fc !important;
}

.prefer-not-say-btn:hover {
    background: #c4b0fc !important;
    border-color: #c4b0fc !important;
}

/* Other Input */
.other-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.other-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0dcff;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.other-input:focus {
    outline: none;
    border-color: #B9B1FF;
}

.other-submit-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #D1DE54;
    border: none;
    border-radius: 50%;
    color: #240046;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    padding: 0;
}

.other-submit-btn:hover {
    background: #c0cd40;
    transform: scale(1.1);
}

.other-submit-btn:active {
    transform: scale(0.95);
}

/* Q6 Slider */
.slider-container {
    margin-top: 20px;
}

.slider-steps {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.slider-step {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    background: #f8f7ff;
    border: 2px solid #e0dcff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #240046;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.slider-step:hover {
    background: #B9B1FF;
    border-color: #B9B1FF;
    transform: translateY(-2px);
}

.slider-step.selected {
    background: #240046;
    color: white;
    border-color: #240046;
    transform: scale(1.05);
}

/* Terms Modal */
#termsModal .modal-content {
    max-width: 600px;
}

.modal-image-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f8f7ff 0%, #ede9ff 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.terms-checkbox-container {
    margin: 25px 0;
    text-align: left;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.terms-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox-label a {
    color: #240046;
    text-decoration: underline;
}

.terms-checkbox-label a:hover {
    color: #B9B1FF;
}

#termsContinueBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Prefer Not to Say Modal */
#preferNotSayModal .modal-content {
    max-width: 500px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.modal-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* DC Lead Modal */
#dcLeadModal .modal-content {
    max-width: 600px;
}

#dcLeadForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

#dcLeadForm input[type="text"],
#dcLeadForm input[type="tel"],
#dcLeadForm input[type="email"] {
    padding: 15px;
    border: 2px solid #e0dcff;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

#dcLeadForm input:focus {
    outline: none;
    border-color: #B9B1FF;
}

/* Honeypot Field Hiding (Anti-Bot) */
.opb-honeypot-field {
  /* Visual hiding */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  
  /* Interaction prevention */
  pointer-events: none;
  
  /* Screen reader hiding */
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  margin: 0;
  padding: 0;
}

.opb-honeypot-field label {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.opb-honeypot-field input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

#dcLeadSubmitBtn {
    margin-top: 10px;
}

#dcLeadSubmitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .slider-steps {
        flex-direction: column;
    }
    
    .slider-step {
        width: 100%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    .welcome-features {
        max-width: 100%;
    }
    
    .other-submit-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 16px;
    }
}

@media (max-width: 544px) {
    .other-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .other-submit-btn {
        width: 100%;
        height: 45px;
        min-width: 100%;
        border-radius: 10px;
    }
}

