@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors - Adjusted for high contrast on light backgrounds */
    --primary-purple: #2563eb;
    --primary-purple-light: #3b82f6;
    --primary-purple-dark: #1e40af;
    --gradient-purple: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);

    /* Keeping blue variables for backward compatibility */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --gradient-blue: var(--gradient-purple);
    
    --red-critical: #dc2626;
    --red-critical-dark: #b91c1c;
    --red-gradient: linear-gradient(135deg, var(--red-critical) 0%, var(--red-critical-dark) 100%);
    
    --orange-concerned: #d97706;
    --orange-concerned-dark: #b45309;
    --orange-gradient: linear-gradient(135deg, var(--orange-concerned) 0%, var(--orange-concerned-dark) 100%);
    
    --green-planning: #059669;
    --green-planning-dark: #047857;
    --green-gradient: linear-gradient(135deg, var(--green-planning) 0%, var(--green-planning-dark) 100%);
    
    /* Light Theme Colors - High Contrast for 45+ audience */
    --light-bg: #fefefe;
    --light-bg-secondary: #f8fafc;
    --light-card: #ffffff;
    --light-card-hover: #f1f5f9;
    --light-input: #ffffff;
    --text-dark: #1a202c;
    --text-darker: #0f172a;
    --text-muted-light: #475569;
    --text-placeholder-light: #64748b;
    --border-light: #d1d5db;
    --border-light-hover: #9ca3af;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-light-elevated: rgba(0, 0, 0, 0.15);
    --shadow-colored-light: rgba(37, 99, 235, 0.15);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-secondary) 100%);
    color: var(--text-darker);
    padding: 20px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Progress Bar Styles */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin-bottom: 40px;
    margin-top: 30px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 120px;
    min-height: 80px;
}

.step-circle {
    width: 80px;
    height: 32px;
    border-radius: 16px;
    background-color: var(--border-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    position: relative;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted-light);
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
    line-height: 1.1;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-line {
    height: 2px;
    background-color: var(--border-light);
    flex: 1;
    margin: 0 10px;
    position: relative;
    top: -15px;
    transition: background-color 0.4s ease;
}

/* Active and completed states */
.progress-step.active .step-circle {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.progress-step.active .step-label {
    color: var(--primary-purple-light);
}

.progress-step.completed .step-circle {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.progress-step.completed .step-label {
    color: var(--text-dark);
}

.progress-step.completed + .progress-line {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-light));
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* Responsive progress bar */
@media (max-width: 600px) {
    .progress-container {
        padding: 0 10px;
    }
    
    .step-circle {
        width: 70px;
        height: 28px;
        border-radius: 14px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
        height: 22px;
        line-height: 1.0;
    }
    
    .progress-line {
        margin: 0 5px;
    }
    
    .progress-step {
        min-height: 75px;
    }
}

.container {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(180deg, var(--light-card) 0%, var(--light-bg-secondary) 100%);
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 15px 45px var(--shadow-light-elevated), 
                0 5px 15px var(--shadow-light),
                0 0 0 1px var(--border-light);
    position: relative;
    overflow: visible;
    min-height: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    transition: min-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

h2 {
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    color: var(--text-darker);
    font-size: 1.8em;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-darker) 0%, var(--text-muted-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 10px;
}

#step2 h2 {
    font-size: 1.7em;
    line-height: 1.3;
    margin-bottom: 20px;
    padding: 0 5px;
}

input[type="email"],
input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--border-light);
    background-color: var(--light-input);
    color: var(--text-darker);
    margin-bottom: 20px;
    font-size: 1.1em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 2px var(--shadow-light), 0 1px 3px var(--shadow-light);
    will-change: transform, box-shadow;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
select option:first-child {
    color: var(--text-placeholder-light);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25),
                0 4px 12px var(--shadow-colored-light),
                inset 0 1px 2px var(--shadow-light);
    transform: translateY(-2px) scale(1.01);
}

/* Add subtle hover effect */
input[type="email"]:hover:not(:focus),
input[type="text"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
select:hover:not(:focus) {
    border-color: var(--border-light-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-colored-light), inset 0 1px 2px var(--shadow-light);
}

/* Smooth field completion animation */
input.field-complete {
    animation: fieldComplete 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fieldComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

button, .cta-call-now, .cta-schedule-appt {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    background: var(--gradient-purple);
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25), 0 1px 2px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

/* Add loading state for buttons */
button:disabled, .cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

button.loading::after, .cta.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

button:before, .cta-call-now:before, .cta-schedule-appt:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

button:hover:before, .cta-call-now:hover:before, .cta-schedule-appt:hover:before {
    left: 100%;
}

button:hover, .cta-call-now:hover, .cta-schedule-appt:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3), 0 2px 4px var(--shadow-light);
}

.choice-btn {
    width: 100%;
    margin: 10px 0;
    padding: 18px 16px;
    font-size: 1.15em;
    border-radius: var(--border-radius-md);
    background-color: var(--light-input);
    color: var(--text-darker);
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.choice-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: all 0.6s;
}

.choice-btn:hover:before {
    left: 100%;
}

.choice-btn:hover {
    transform: translateY(-2px) scale(1.01);
    background-color: var(--light-card-hover);
    border-color: var(--primary-purple-light);
    box-shadow: 0 4px 15px var(--shadow-light-elevated), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.choice-btn.selected {
    background: var(--gradient-purple);
    border-color: var(--primary-purple-light);
    color: white;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4), 0 2px 5px var(--shadow-light);
    transform: scale(1.03);
    font-weight: 600;
}

.step {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    padding: 32px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    z-index: 1;
    overflow-y: auto;
}

.step.active {
    display: flex;
    flex-direction: column;
    animation-name: fadeInStep;
    z-index: 2;
}

.step.exit {
    animation-name: fadeOutStep;
}

.social-proof {
    text-align: center;
    font-size: 0.95em;
    color: var(--text-muted-light);
    margin-top: 25px;
    padding: 16px;
    background-color: var(--light-bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 1px 3px var(--shadow-light);
    border: 1px solid var(--border-light);
}

/* Progress Bar Styles */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--border-light);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px var(--shadow-light);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-light));
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

@keyframes fadeInStep {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutStep {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* Loading content within steps */
.loading-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-purple);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.loading-content .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-purple);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.loading-text {
    color: var(--text-darker);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.loading-content .loading-text {
    color: var(--text-darker);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Verification steps styling */
.verification-steps {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 16px;
}

.verification-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.check-icon {
    width: 24px;
    height: 24px;
    background-color: var(--green-planning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.check-text {
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.loading-content h2 {
    margin-bottom: 30px;
    font-size: 1.6em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Debt qualification buttons */
.debt-qualification-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.debt-qualification-buttons .debt-qualification-btn {
    flex: none;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    font-size: 1.3em;
    font-weight: 600;
    color: white;
    background: var(--gradient-purple);
    border-color: var(--primary-purple);
    margin: 0 auto;
}

/* Form fields container */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 40px;
}

/* Form progress indicator */
.form-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-light);
}

.form-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-light));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.form-progress-text {
    font-size: 12px;
    color: var(--text-muted-light);
    text-align: center;
    font-weight: 500;
}

.form-fields input,
.form-fields select {
    margin-bottom: 0;
}

.form-fields .cta {
    margin-top: 15px;
    padding: 18px;
    font-size: 1.15em;
    font-weight: 600;
}

/* Disclaimer text styling */
#step2 .disclaimer {
    font-size: 11px;
    color: var(--text-muted-light);
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
    padding: 0 20px;
}

.disclaimer a {
    color: var(--primary-purple);
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .container {
        min-height: 650px;
        padding: 40px 32px;
    }
    
    #step2 h2 {
        font-size: 1.5em;
        line-height: 1.25;
        padding: 0 10px;
    }
    
    #step2 p {
        font-size: 14px;
        padding: 0 10px;
        line-height: 1.4;
    }
    
    .form-fields {
        gap: 18px;
        padding-bottom: 50px;
    }
    
    .form-fields input,
    .form-fields select {
        padding: 14px;
        font-size: 16px;
    }
    
    .form-fields .cta {
        padding: 16px;
        font-size: 1.1em;
    }
    
    .disclaimer {
        font-size: 10px;
        margin-top: 12px;
    }
}

/* Urgency buttons with specific styling */

.urgency-buttons {
  display: flex;
  gap: 1rem; /* space between buttons */
}

.urgency-buttons .urgency-btn {
  flex: 1 1 0;    /* all buttons grow/shrink equally */
  min-width: 0;   /* allow text to wrap instead of forcing wider boxes */
  text-align: center;
  padding: 2rem;  /* adjust as needed */
  box-sizing: border-box;
  cursor: pointer;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  color: var(--text-lighter);
  font-weight: 600;
}

.urgency-buttons .urgency-btn:hover {
  transform: translateY(-2px);
}
.urgency-buttons .urgency-btn:active {
  transform: scale(0.97);
}

.urgency-btn[data-urgency="Critical"] {
    background: var(--red-gradient);
    border: 1px solid var(--red-critical);
}
.urgency-btn[data-urgency="Critical"]:hover {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}
.urgency-btn[data-urgency="Critical"].selected {
    background: var(--red-gradient);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.urgency-btn[data-urgency="Concerned"] {
    background: var(--orange-gradient);
    border: 1px solid var(--orange-concerned);
}
.urgency-btn[data-urgency="Concerned"]:hover {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}
.urgency-btn[data-urgency="Concerned"].selected {
    background: var(--orange-gradient);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.urgency-btn[data-urgency="Planning"] {
    background: var(--green-gradient);
    border: 1px solid var(--green-planning);
}
.urgency-btn[data-urgency="Planning"]:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}
.urgency-btn[data-urgency="Planning"].selected {
    background: var(--green-gradient);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Styles for the Mini Report screen (step6) */
#step6, #step2 {
    text-align: center;
}

#step6 h2, #step2 h2 {
    margin-bottom: 20px;
}

#step6 p, #step2 p, #step1 p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: center;
    padding: 0 10px;
    max-width: 100%;
}

#step2 p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 25px;
    padding: 0 5px;
}

#step6 .advice-box, #step2 .advice-box {
    background: var(--light-bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin: 20px 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px var(--shadow-light);
}

#step6 .advice-title, #step2 .advice-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-purple-light);
}

#step6 .button-group, #step2 .button-group {
    margin-top: 25px;
    gap: 15px;
}

.cta-call-now,
.cta-schedule-appt {
    display: flex;
    width: 100%;
    padding: 16px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cta-call-now {
    background: var(--red-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

.cta-call-now:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.cta-schedule-appt {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.cta-schedule-appt:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Icon styles for CTA buttons */
.icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

.icon-calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

/* Animation and interaction styles */
.container {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.95;
}

.container.animated {
    opacity: 1;
    animation: container-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes container-enter {
    0% { transform: translateY(20px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Button animations */
.button-pressed {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 5px var(--shadow-light) !important;
}

/* Ripple effect for buttons */
.choice-btn, .next-btn, .cta, .cta-call-now, .cta-schedule-appt {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Input error styling */
.input-error {
    border-color: var(--red-critical) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* Shake animation for validation errors */
.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

/* Loading overlay fade-in/out */
.loading-overlay {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Media Queries for responsive design */
@media (min-width: 600px) {
    .choice-btn {
        width: 48%;
        margin: 10px 1%;
    }
    
    .button-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    /* Desktop-only: Make step0 buttons horizontal side-by-side */
    .debt-qualification-buttons {
        flex-direction: row;
        gap: 20px;
        max-width: 600px;
        margin: 30px auto 0;
        justify-content: center;
    }
    
    .debt-qualification-buttons .debt-qualification-btn {
        flex: 1;
        max-width: 280px;
        min-width: 200px;
    }
    
    .cta-call-now,
    .cta-schedule-appt {
        width: 48%;
    }
    
    /* Add a slight hover effect for desktop users */
    .container {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .container:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px var(--shadow-light-elevated),
                    0 10px 20px var(--shadow-light),
                    0 0 0 1px var(--border-light);
    }
    
    .container {
        max-width: 800px;
        min-height: 700px;
        padding: 56px 64px;
    }
}

/* Animated background element */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-animation .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 20s infinite alternate ease-in-out;
}

.bg-animation .orb:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.15);
    animation-delay: 0s;
}

.bg-animation .orb:nth-child(2) {
    bottom: 20%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: rgba(5, 150, 105, 0.12);
    animation-delay: -5s;
}

.bg-animation .orb:nth-child(3) {
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: rgba(220, 38, 38, 0.1);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate(30px, 30px) rotate(20deg) scale(1.1);
    }
}

/* Icon styles for elements */
.choice-btn i, .next-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.emoji-icon {
    font-size: 20px;
    margin-right: 8px;
    display: inline-block;
}

/* Logo styling */
.logo-container {
    text-align: center;
    padding: 15px 0;
    margin-bottom: 10px;
}

.header-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .header-logo {
        max-width: 150px; /* Slightly smaller on mobile */
    }
    
    .logo-container {
        padding: 10px 0;
    }
}
