﻿/* ========== CSS VARIABLES ========== */
:root {
    --primary-color: #170663;
    --primary-light: #552ffa;
    --primary-dark: #0e004e;
    --secondary-color: #ffd201;
    --success-color: #059669;
    --success-color-utech: #ffd201;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-Dark: #eeeef7;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 16px;
}

/* ========== MODERN HEADER ========== */
.modern-header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-Dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

    .modern-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.5;
    }

.header-head {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    max-width: 100%;
    margin: auto;
    padding: 2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-container {
    max-width: 100%;
    padding: 0.5rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.help-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

    .help-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

/* ========== PROGRESS BAR ========== */
.progress-container {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.progress-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    opacity: 0.4;
    transition: all 0.3s ease;
}

    .progress-step.active,
    .progress-step.completed {
        opacity: 1;
    }

    .progress-step::after {
        content: '';
        position: absolute;
        top: 15px;
        left: 100%;
        width: 2rem;
        height: 2px;
        background: var(--border);
        transition: all 0.3s ease;
    }

    .progress-step:last-child::after {
        display: none;
    }

    .progress-step.completed::after {
        background: var(--primary-color);
    }

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-step.active span,
.progress-step.completed span {
    color: var(--text-primary);
}

/* ========== MAIN CONTAINER ========== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* ========== NOTICE CARD ========== */
.notice-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.notice-content h3 {
    color: #92400e;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.notice-content small {
    color: #a16207;
    font-style: italic;
}

/* ========== FORM SECTIONS ========== */
.form-section {
    display: none;
    animation: fadeInUp 0.4s ease;
}

    .form-section.active {
        display: block;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
    font-size: 1rem;
}

/* ========== FORM GRID ========== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========== FORM GROUPS ========== */
.form-group {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

    .form-group:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

.input-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

    .form-label i {
        color: var(--primary-color);
        font-size: 1rem;
    }

/* ========== MODERN INPUTS ========== */
.modern-select,
.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-primary);
}

    .modern-select:focus,
    .modern-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .modern-select:hover,
    .modern-input:hover {
        border-color: var(--text-secondary);
    }

/* ========== INFO CARDS ========== */
.info-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
    grid-column: span 2;
}

    .info-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

.card-header {
    padding: 1.5rem;
    background: var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

    .card-title i {
        color: var(--primary-color);
        font-size: 1.25rem;
    }

    .card-title span {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 1rem;
    }

.card-content {
    padding: 1.5rem;
}

/* ========== TOGGLE SWITCH ========== */
.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: inline-block;
    width: 50px;
    height: 28px;
    background-color: var(--border);
    border-radius: 34px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-label {
    background-color: var(--primary-color);
}

    .toggle-input:checked + .toggle-label .toggle-slider {
        transform: translateX(22px);
    }

/* ========== RADIO GROUPS ========== */
.modern-radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

    .modern-radio-group input[type="radio"] {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid var(--border);
        border-radius: 50%;
        background: white;
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .modern-radio-group input[type="radio"]:checked {
            border-color: var(--primary-color);
            background: var(--primary-color);
        }

            .modern-radio-group input[type="radio"]:checked::after {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 8px;
                height: 8px;
                background: white;
                border-radius: 50%;
            }

    .modern-radio-group label {
        cursor: pointer;
        font-weight: 500;
        color: var(--text-primary);
    }

.question-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--success-color-utech) 100%);
    color: #170663;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-outline:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-success {
    background: linear-gradient(135deg, var(--success-color-utech) 0%, #ffd201 100%);
    color: #170663;
    box-shadow: var(--shadow);
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* ========== STEP NAVIGATION ========== */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

    .step-navigation .btn + .btn {
        margin-left: 1rem;
    }

/* ========== TOOLTIPS ========== */
/* ========== INLINE HELP SYSTEM ========== */
.help-icon {
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    padding: 0.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

    .help-icon:hover {
        color: var(--primary-color);
        background-color: rgba(23, 6, 99, 0.1);
        transform: scale(1.1);
    }

    .help-icon.active {
        color: var(--primary-color);
        background-color: rgba(23, 6, 99, 0.15);
        transform: rotate(180deg);
    }

/* Help content container */
.help-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 0 0.75rem 0;
    opacity: 0;
}

    .help-content.active {
        max-height: 200px;
        opacity: 1;
        margin: 0.75rem 0;
    }

.help-text {
    background: linear-gradient(135deg, rgba(23, 6, 99, 0.05) 0%, rgba(23, 6, 99, 0.02) 100%);
    border: 1px solid rgba(23, 6, 99, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
    animation: slideInDown 0.3s ease;
}

    .help-text::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 20px;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid rgba(23, 6, 99, 0.1);
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Variations for different help content types */
.help-text.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.help-text.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.help-text.tip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
    .help-content.active {
        max-height: 300px;
    }
}

/* ========== MODERN FOOTER ========== */
.modern-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

    .footer-section a:hover {
        color: white;
    }

/* ========== SELECT2 CUSTOMIZATION ========== */
.select2-container--default .select2-selection--single {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    line-height: 1.4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

    /* Selected text */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: var(--text-color);
        padding: 0;
        margin: 0;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Placeholder text */
    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #999;
    }

    /* Arrow */
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        right: 12px;
        transform: translateY(25%);
    }

        .select2-container--default .select2-selection--single .select2-selection__arrow b {
            border-color: #666 transparent transparent transparent;
            border-style: solid;
            border-width: 5px 4px 0 4px;
            height: 0;
            left: 50%;
            margin-left: -4px;
            margin-top: -2px;
            position: absolute;
            top: 50%;
            width: 0;
        }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Opened state */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--secondary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

    .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
        border-color: transparent transparent #666 transparent;
        border-width: 0 4px 5px 4px;
    }


.select2-dropdown {
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Search box in dropdown */
.select2-search--dropdown .select2-search__field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 8px;
    box-sizing: border-box;
}

    .select2-search--dropdown .select2-search__field:focus {
        border-color: var(--secondary-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
    }

/* Results */
.select2-results {
    max-height: 200px;
    overflow-y: auto;
}

.select2-results__options {
    padding: 0;
    margin: 0;
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .select2-results__option:last-child {
        border-bottom: none;
    }

.select2-results__option--highlighted {
    background-color: var(--primary-color);
}

/* Selected option */
.select2-results__option[aria-selected="true"] {
    background-color: var(--light-gray);
    color: var(--text-color);
}

    .select2-results__option[aria-selected="true"].select2-results__option--highlighted {
        background-color: var(--primary-color);
        color: white;
    }

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

    .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
        color: #999;
    }

/* Clear button */
.select2-selection__clear {
    color: #999;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transform: translateY(-100%);
}

    .select2-selection__clear:hover {
        color: var(--secondary-color);
    }

/* Loading state */
.select2-results__option--loading-more {
    text-align: center;
    padding: 15px;
    color: #999;
    font-style: italic;
}

/* No results */
.select2-results__message {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .header-head {
        padding: 0 1rem;
    }

    .header-container {
        padding: 0 1rem;
    }

    .brand-text h1 {
        font-size: 1.25rem;
    }

    .progress-bar {
        padding: 0 1rem;
        gap: 1rem;
    }

    .progress-step::after {
        width: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        grid-column: span 1;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }

        .step-navigation .btn + .btn {
            margin-left: 0;
        }

    .modern-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .help-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .progress-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-step::after {
        display: none;
    }

    .notice-card {
        flex-direction: column;
        text-align: center;
    }

    .brand {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .header-actions {
        margin-top: 1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group:nth-child(odd) {
    animation: slideInLeft 0.6s ease;
}

.form-group:nth-child(even) {
    animation: slideInRight 0.6s ease;
}

/* ========== ACCESSIBILITY ========== */
.btn:focus,
.modern-select:focus,
.modern-input:focus,
.toggle-label:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.results-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.success-banner {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.banner-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.banner-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.875rem;
    font-weight: 700;
}

.banner-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.125rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-icon:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.disclaimer-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.disclaimer-icon {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-content h3 {
    color: #92400e;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.disclaimer-content p {
    color: #92400e;
    margin: 0 0 0.5rem 0;
}

.disclaimer-content small {
    color: #a16207;
}

.results-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.summary-card, .breakdown-card, .action-card, .payment-card, .aid-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background: var(--border-light);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .card-header h3 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .card-header i {
        color: var(--primary-color);
    }

.btn-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
    .btn-toggle:hover {
        background: var(--primary-dark);
    }

.summary-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 1rem;
    padding: 1.5rem;
}

.summary-item {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    background-color: rgba(0, 102, 204, 0.05);
    border-radius: 5px;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cost-breakdown {
    padding: 1.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

    .cost-item:last-child {
        border-bottom: none;
    }

    .cost-item.primary {
        background: rgba(37, 99, 235, 0.05);
        margin: -0.5rem -1rem 0.5rem -1rem;
        padding: 1rem 1.5rem;
        border-radius: var(--radius);
    }

    .cost-item.discount .cost-amount {
        color: var(--success-color);
    }

.cost-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

    .cost-name i {
        color: var(--primary-color);
        width: 20px;
    }

.cost-amount {
    font-weight: 600;
    font-size: 1.125rem;
}

.cost-item.subtotal {
    background: rgba(37, 99, 235, 0.05);
    margin: -0.5rem -1rem 0.5rem -1rem;
    padding: 1.25rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    margin: 0.5rem -1rem;
    position: relative;
}

    .cost-item.subtotal .cost-name {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--primary-color);
    }

    .cost-item.subtotal .cost-amount {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--primary-color);
    }

/* Add a badge-like indicator */
.cost-item.subtotal::after {
    content: 'SUBTOTAL';
    position: absolute;
    top: -8px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    letter-spacing: 0.5px;
}


.total-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.total-cost, .total-credit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.total-cost {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    margin: 0 -1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.total-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.total-amount {
    font-weight: 700;
    font-size: 1.5rem;
}

.total-credit .total-label {
    color: var(--success-color);
}

.total-credit .total-amount {
    color: var(--success-color);
}

.chart-container {
    padding: 1.5rem;
    height: 300px;
}

.action-buttons {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-options {
    padding: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .payment-option:hover {
        border-color: var(--primary-color);
        background: rgba(37, 99, 235, 0.02);
        transform: translateX(4px);
    }

.payment-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.payment-info {
    flex: 1;
}

    .payment-info h4 {
        margin: 0 0 0.25rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .payment-info p {
        margin: 0;
        font-size: 0.875rem;
        color: var(--text-secondary);
    }

.aid-content {
    padding: 1.5rem;
}

    .aid-content p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
    }

.aid-links {
    margin-bottom: 2rem;
}

.aid-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

    .aid-link:hover {
        background: rgba(37, 99, 235, 0.05);
        transform: translateX(4px);
    }

.contact-options h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    color: var(--text-primary);
}

.generation-info {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.info-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

    .info-item i {
        color: var(--primary-color);
    }

/* Modern Modal Styles */
.modern-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: var(--border-light);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
    }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .modal-close:hover {
        background: var(--border-light);
        color: var(--text-primary);
    }

.modal-content {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.plan-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.plan-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.plan-info p {
    margin: 0;
    opacity: 0.9;
}

.payment-breakdown {
    padding: 2rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

    .payment-item:last-of-type {
        border-bottom: none;
    }

.installment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.installment-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.payment-label {
    font-weight: 500;
    color: var(--text-primary);
}

.payment-amount {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.payment-total {
    background: var(--border-light);
    margin: 1rem -2rem 0 -2rem;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border);
}

    .payment-total .payment-label {
        font-size: 1.125rem;
        font-weight: 600;
    }

    .payment-total .payment-amount {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }

.payment-notes {
    background: var(--border-light);
    padding: 2rem;
    border-top: 1px solid var(--border);
}

    .payment-notes h5 {
        margin: 0 0 1rem 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .payment-notes h5 i {
            color: var(--primary-color);
        }

    .payment-notes ul {
        margin: 0;
        padding-left: 1.5rem;
    }

    .payment-notes li {
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .results-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .results-container {
        padding: 1rem;
    }

    .success-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-actions {
        margin-left: 0;
        margin-top: 1rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .info-content {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-container {
        margin: 1rem;
        max-height: 90vh;
    }

    .plan-header {
        flex-direction: column;
        text-align: center;
    }

    .cost-item.subtotal {
        margin: 1rem -0.5rem;
        padding: 1.25rem;
        transform: scale(1.01);
    }

        .cost-item.subtotal .cost-amount {
            font-size: 1.25rem;
        }
}

@media (max-width: 480px) {
    .cost-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .total-cost, .total-credit {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

