:root {
    --bg-main: #f0f4f8; /* Nền xám nhạt sáng sủa */
    --primary: #f26522; /* Màu Cam chuẩn của GHN */
    --primary-hover: #e0581b;
    --secondary: #1a365d; /* Màu Xanh Navy đậm của GHN */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(226, 232, 240, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --error: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Animation Blobs cho Background (Sáng hơn, dịu hơn) */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.1) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.1) 0%, transparent 70%);
    animation-duration: 15s;
}

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

.container {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

/* Header & Logos */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.brand-logo {
    height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.program-logo {
    height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.logo-divider {
    width: 2px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 2px;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary); /* Chuyển sang màu Cam GHN */
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Panel - Sáng sủa */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    width: 70px;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(242, 101, 34, 0.4);
}

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

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step.completed .step-label {
    color: var(--success);
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 5px;
    position: relative;
    top: -12px;
    transition: background 0.3s ease;
    border-radius: 2px;
}

.step-line.active {
    background: var(--primary);
}

/* Benefits Card (Truyền thông) */
.benefits-card {
    background: linear-gradient(135deg, #fff7f5 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.05);
}

.benefits-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.benefit-col h4 {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.benefit-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-col li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    text-align: left;
}

.benefit-col li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

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

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary); /* Xanh Navy đậm */
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form Inputs */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-grid .input-group {
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.required {
    color: var(--error);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="date"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.radio-label:hover {
    background: #fff7f5;
    border-color: var(--primary);
}

.radio-label input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
    margin: 0;
    cursor: pointer;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 3.5rem;
}

.input-with-icon .icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
}

/* Validation Errors */
.error-msg {
    display: none;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: shake 0.4s ease;
}

.input-group.error input[type="text"],
.input-group.error input[type="email"],
.input-group.error input[type="tel"],
.input-group.error input[type="number"],
.input-group.error input[type="date"],
.input-group.error textarea,
.input-group.error .radio-label {
    border-color: var(--error);
    background: #fef2f2;
}

.input-group.error .error-msg {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.word-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Alert Box */
.alert-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #eff6ff; /* Nền xanh lam cực nhạt */
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #1e3a8a;
}

.alert-box svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.alert-box strong {
    display: block;
    color: #1d4ed8;
    margin-bottom: 0.25rem;
}

.alert-box p {
    font-size: 0.95rem;
    margin: 0;
}

/* Buttons */
.form-actions {
    display: flex;
    margin-top: 2.5rem;
}

.form-actions.right { justify-content: flex-end; }
.form-actions.between { justify-content: space-between; }

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary, .btn-submit {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.25);
}

.btn-primary:hover, .btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn:active {
    transform: translateY(0);
}

/* Loading State */
.btn-submit {
    position: relative;
    min-width: 180px;
    justify-content: center;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading span { display: none; }
.btn-submit.loading .spinner { display: block; }

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

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid #a7f3d0;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-state h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--success);
}

.success-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.5;
}

.mt-4 { margin-top: 2.5rem; display: inline-flex; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .step-label {
        font-size: 0.75rem;
        text-align: center;
        margin-top: 5px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-line {
        top: -15px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .form-actions.between .btn, .form-actions.right .btn {
        width: 100%;
        justify-content: center;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-divider {
        width: 40px;
        height: 1px;
    }
}
