/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background-color: #1a73e8;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(26,115,232,0.2), 
                0 1px 3px rgba(26,115,232,0.1);
    transition: padding 0.4s ease;
}

header.collapsed {
    padding: 0.5rem 0;
}

.logo {
    text-align: center;
    margin-bottom: 1rem;
    transition: margin 0.4s ease;
}

.collapsed .logo {
    margin-bottom: 0;
}

.logo img {
    max-height: 70px;
    width: auto;
    transition: max-height 0.4s ease;
}

.collapsed .logo img {
    max-height: 50px;
}

.header-text {
    transform-origin: top;
    transition: transform 0.4s ease, opacity 0.4s ease, height 0.4s ease;
    height: auto;
    opacity: 1;
    overflow: hidden;
}

.collapsed .header-text {
    transform: translateY(-20px);
    opacity: 0;
    height: 0;
}

header h1 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
}

.tagline {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Form styles */
main {
    padding: 2rem 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main .container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.5rem;
}

h2 {
    color: #1a73e8;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.block-label {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Form input styles */
input, select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
    transform: translateY(-1px);
}

input::placeholder {
    color: #999;
}

/* Radio tiles styles */
.radio-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin: 1.5rem 0.5rem;
    padding: 0 0.5rem;
}

.radio-tile {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.radio-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.radio-tile label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border: none;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #1a73e8;
    color: white;
    box-shadow: 0 4px 6px rgba(26,115,232,0.2), 
                0 1px 3px rgba(26,115,232,0.1);
    transform: translateY(0);
    -webkit-tap-highlight-color: transparent;
}

.radio-tile:active label {
    transform: scale(0.98);
    background: #1557b0;
    box-shadow: 0 2px 4px rgba(26,115,232,0.2), 
                0 1px 2px rgba(26,115,232,0.1);
}

.radio-tile input[type="radio"]:checked + label {
    background: #1557b0;
    box-shadow: 0 6px 12px rgba(26,115,232,0.3),
                0 2px 4px rgba(26,115,232,0.2);
}

.radio-title {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.radio-description {
    display: block;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Add ripple effect */
.radio-tile label::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.radio-tile:active label::after {
    opacity: 1;
    transition: opacity 0s;
}

/* Mobile-first responsive adjustments */
@media (min-width: 768px) {
    .radio-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin: 2rem 0;
        padding: 0;
    }

    .radio-tile label {
        padding: 1.5rem 1.25rem;
    }
    
    .radio-title {
        font-size: 1.6rem;
    }
}

/* Enhance the form container on mobile */
main.container {
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
    transition: padding-top 0.4s ease;
}

main.container.header-collapsed {
    padding-top: 0;
}

/* Make headings more prominent on mobile */
h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #2c3e50;
}

/* Button styles */
.btn {
    background: #1a73e8;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(26,115,232,0.2);
}

.btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26,115,232,0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(26,115,232,0.2);
}

.prev-btn {
    background: #6c757d;
    margin-right: 1rem;
}

.prev-btn:hover {
    background: #5a6268;
}

.next-btn, .submit-btn {
    display: block;
    width: 100%;
    margin-top: 2rem;
    padding: 1.25rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Footer styles */
footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: auto;
    flex-shrink: 0;
}

footer p {
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-links {
    text-align: center;
}

.footer-links a {
    color: #1a73e8;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Mobile-first responsive adjustments */
@media (min-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 30px;
    }

    .btn {
        padding: 1.25rem 2.5rem;
    }
    
    .next-btn, .submit-btn {
        width: auto;
        min-width: 200px;
        float: right;
    }
    
    .prev-btn {
        float: left;
    }
}

/* Form container styles */
main.container {
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

#multi-step-form {
    position: relative;
    min-height: 400px;
    flex: 1;
}

/* Celebration Screen Styles */
.celebration-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.celebration-screen.active {
    opacity: 1;
}

.celebration-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1002; /* Place above celebration text */
}

.celebration-text {
    font-size: min(8vw, 2.5rem);
    color: #1a73e8;
    margin: 0 auto 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.5s;
    z-index: 1001;
    position: relative;
    line-height: 1.2;
    width: 100%;
    text-align: center;
}

.celebration-message {
    font-size: min(5vw, 1.5rem);
    color: #333;
    margin: 0 auto 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.8s;
    z-index: 1001;
    position: relative;
    line-height: 1.3;
    width: 100%;
    text-align: center;
}

.celebration-submessage {
    font-size: min(4vw, 1.2rem);
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 1.1s;
    z-index: 1001;
    position: relative;
    line-height: 1.3;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Confetti Styles */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall linear forwards;
    will-change: transform;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0);
        opacity: 1;
    }
    25% {
        transform: translateY(100px) rotate(90deg) translateX(15px);
    }
    50% {
        transform: translateY(200px) rotate(180deg) translateX(-15px);
    }
    75% {
        transform: translateY(300px) rotate(270deg) translateX(15px);
    }
    100% {
        transform: translateY(450px) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confetti-shake {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

/* Info icon and tooltip styles */
.info-icon-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    position: relative;
}

.info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    transition: background-color 0.2s ease;
}

.info-icon:hover {
    background: #555;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(102, 102, 102, 0.9);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    width: max-content;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(102, 102, 102, 0.9) transparent transparent transparent;
}

.info-icon:hover + .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Form group with info icon */
.form-group-with-info {
    display: flex;
    align-items: flex-start;
}

.form-group-with-info label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* TCPA Disclaimer styles */
.tcpa-disclaimer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
    transform: translateY(-20px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.tcpa-disclaimer.visible {
    transform: translateY(0);
    opacity: 1;
    max-height: 200px;
    margin: 1.5rem 0;
    padding: 1rem;
}

.tcpa-disclaimer p {
    margin: 0;
}

/* Update submit button styles */
.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.thank-you-step {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.thank-you-step .celebration-content {
    max-width: 600px;
    padding: 2rem;
}

.thank-you-step .celebration-text {
    color: #1a73e8;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.thank-you-step .celebration-message {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.thank-you-step .celebration-submessage {
    font-size: 1.1rem;
    color: #666;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

/* Progress bar styles */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    color: #666;
    transition: all 0.3s ease;
}

.progress-bar .step.active {
    border-color: #1a73e8;
    background: #1a73e8;
    color: white;
}

@media (min-width: 768px) {
    .celebration-screen {
        padding: 2rem;
    }
    
    .celebration-content {
        padding: 3rem;
    }
}

/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.loading-content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
} 