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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Mobile Responsive Body */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px 30px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.company-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.company-name {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Mobile Responsive Logo */
@media (max-width: 768px) {
    .logo-section {
        padding: 30px 20px;
        min-height: 120px;
    }
    
    .company-logo {
        max-height: 80px;
    }
    
    .company-name {
        font-size: 24px;
    }
}

/* Progress Bar */
.progress-container {
    padding: 20px 40px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 40%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 14px;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
    min-height: 400px;
}

/* Mobile Responsive Form Steps */
@media (max-width: 768px) {
    .form-step {
        padding: 20px;
        min-height: 300px;
    }
}

.form-step.active {
    display: block;
}

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

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* Login Section */
.login-section {
    max-width: 600px;
    margin: 0 auto;
}

.current-shopper-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.current-shopper-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.current-shopper-box p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.new-shopper-box {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.new-shopper-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[readonly] {
    background: var(--bg-light);
    cursor: not-allowed;
}

.required {
    color: var(--error-color);
    margin-left: 3px;
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.form-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    display: block;
}

/* Buttons */
.next-button,
.submit-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    width: 100%;
    margin-top: 20px;
}

.next-button:hover,
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.next-button:active,
.submit-button:active {
    transform: translateY(0);
}

/* Main Form Styles */
.main-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.required-note {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.section-description {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Waiver Section */
.waiver-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
}

.waiver-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-medium);
}

.waiver-text p {
    margin-bottom: 15px;
}

/* Date Inputs */
.date-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.date-inputs select {
    padding: 12px;
}

/* Height and Weight Inputs */
.height-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.weight-input,
.income-input {
    position: relative;
}

.income-input .currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    font-weight: 600;
    z-index: 1;
}

.income-input input {
    padding-left: 30px;
}

/* Area Code Inputs */
.form-row .form-group input[placeholder*="Area Code"] {
    text-align: center;
    font-weight: 600;
}

/* SSN Section */
.ssn-options {
    margin-top: 15px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
}

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

.ssn-details {
    margin-left: 32px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.ssn-details.active {
    display: block;
}

.ssn-details .form-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 10px;
}

.ssn-details .form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

/* Privacy Section */
.privacy-section {
    max-height: 500px;
    overflow-y: auto;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
}

.privacy-text {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-medium);
}

.privacy-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.privacy-text p {
    margin-bottom: 12px;
}

.privacy-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-text ul li {
    margin-bottom: 8px;
}

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

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

.copyright {
    margin-top: 20px;
    font-weight: 600;
}

.language-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.language-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.language-selector select {
    width: 200px;
    margin-bottom: 10px;
}

.language-note {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* Agreement Section */
.agreement-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
}

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

/* Form Actions */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Success Message */
.success-message {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 20px;
    margin: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 25px;
    font-weight: bold;
}

.success-message h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.success-message p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .form-container {
        border-radius: 15px;
    }

    .logo-section {
        padding: 30px 20px;
        min-height: 120px;
    }
    
    .company-logo {
        max-height: 80px;
    }

    .company-name {
        font-size: 24px;
    }

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

    .form-step {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .height-inputs {
        grid-template-columns: 1fr;
    }

    .waiver-section,
    .privacy-section {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 20px;
    }

    .form-step {
        padding: 20px 15px;
    }

    .next-button,
    .submit-button {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Scrollbar Styling */
.waiver-section::-webkit-scrollbar,
.privacy-section::-webkit-scrollbar {
    width: 8px;
}

.waiver-section::-webkit-scrollbar-track,
.privacy-section::-webkit-scrollbar-track {
    background: var(--bg-white);
    border-radius: 10px;
}

.waiver-section::-webkit-scrollbar-thumb,
.privacy-section::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.waiver-section::-webkit-scrollbar-thumb:hover,
.privacy-section::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}


