/* VION Cost-Sharing Platform - Brand Colors */
:root {
    --primary-purple: #6B46C1;
    --primary-purple-dark: #553C9A;
    --primary-purple-light: #9F7AEA;
    --secondary-purple: #E9D8FD;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --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);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--secondary-purple) 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

.account-banner {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: var(--white);
    padding: 14px 20px;
    font-size: 0.9rem;
}

.account-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-banner-text {
    flex: 1;
    min-width: 220px;
    line-height: 1.45;
}

.account-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.banner-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.banner-btn:hover {
    opacity: 0.92;
}

.banner-btn-primary {
    background: var(--white);
    color: var(--primary-purple-dark);
}

.banner-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Language Selector */
.language-selector {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lang-selector-toggle {
    padding: 8px 16px;
    border: none;
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-selector-toggle:hover {
    background: var(--gray-100);
    box-shadow: var(--shadow-md);
}

.lang-selector-toggle:active {
    transform: scale(0.98);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 5px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
    min-width: 120px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.lang-dropdown.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-btn {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.lang-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.lang-btn.active {
    background: var(--secondary-purple);
    color: var(--primary-purple);
}

.lang-btn:active {
    transform: scale(0.98);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.disclaimer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-title::before {
    content: "⚠️";
    font-size: 1.5rem;
}

.disclaimer-text {
    color: var(--gray-800);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    margin-bottom: 40px;
}

.benefits h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 30px;
}

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

.benefit-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Form Section */
.form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.form-section h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.progress-step.active .progress-number {
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.2);
}

.progress-step.completed .progress-number {
    background: var(--success);
    color: var(--white);
}

.progress-step.completed .progress-number::after {
    content: '✓';
    position: absolute;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: center;
    max-width: 80px;
}

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

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

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

.form-label,
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

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

.field-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 15px;
    font-style: italic;
}

.field-help {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 5px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

select {
    cursor: pointer;
    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='%234B5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

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

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 5px;
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.role-option {
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    padding: 25px;
    border: 2px solid var(--gray-300);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.role-option:hover .role-card {
    border-color: var(--primary-purple-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(159, 122, 234, 0.05) 100%);
    box-shadow: var(--shadow-lg);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.role-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.role-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Routes Management */
.route-item {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--gray-200);
}

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

.route-header h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.btn-remove {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: var(--error);
    color: var(--white);
}

.route-fields {
    display: grid;
    gap: 15px;
}

/* Days Selector */
.days-selector,
.time-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.day-option,
.time-option {
    position: relative;
}

.day-option input[type="checkbox"],
.time-option input[type="checkbox"] {
    display: none;
}

.day-option span,
.time-option span {
    display: block;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.day-option:hover span,
.time-option:hover span {
    border-color: var(--primary-purple-light);
}

.day-option input[type="checkbox"]:checked + span,
.time-option input[type="checkbox"]:checked + span {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
}

/* Preferences Sections */
.preferences-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-purple);
    border-radius: 2px;
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: var(--gray-50);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.optional {
    color: var(--gray-600);
    font-style: italic;
    font-weight: normal;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--secondary-purple);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.form-navigation button {
    flex: 1;
}

/* Form Message */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
    font-weight: 500;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--error);
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

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

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

.modal-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-share {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.success-share p {
    margin-bottom: 15px;
    color: var(--gray-700);
}

.modal-btn {
    width: 100%;
    padding: 14px 28px;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--primary-purple-dark);
}

/* QR Section */
.qr-section {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 40px;
}

.qr-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.qr-section p {
    color: var(--gray-600);
    margin-bottom: 25px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#qrcode {
    display: inline-block;
}

.qr-url {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--primary-purple);
    padding: 10px;
    background: var(--secondary-purple);
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray-600);
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-purple);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--primary-purple-dark);
}

.cookie-btn-decline {
    background: var(--gray-200);
    color: var(--gray-700);
}

.cookie-btn-decline:hover {
    background: var(--gray-300);
}

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

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .progress-indicator {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .progress-label {
        font-size: 0.65rem;
        max-width: 60px;
    }

    .progress-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }

    .days-selector {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }

    .time-selector {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .route-fields {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .cookie-consent-banner,
    .qr-section,
    .language-selector {
        display: none !important;
    }
}
