:root {
    --primary: #005dae;
    --primary-light: #3d8fd9;
    --primary-dark: #004485;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-focus: #005dae;
    --success: #10b981;
    --error: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
}

.font-display {
    font-family: 'Roboto', serif;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 93, 174, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 93, 174, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.wave-decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Layout */
.page-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.logo-icon img{
    width: 100%;
}

.brand-text {
    font-family: 'Roboto', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary);
}

/* Form Container */
.form-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.form-title {
    font-family: 'Roboto', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 40px rgba(0, 93, 174, 0.06);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Section Styling */
.form-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 93, 174, 0.1) 0%, rgba(0, 93, 174, 0.05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

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

.form-group, .form-grid .form-item {
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}

.form-item, .form-actions {
    margin-top: 0;
    margin-bottom: 0;
}

input, input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
    margin: 0;
}

.form-grid label {
    margin-bottom: 0;
}

.form-label, .form-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* Inputs */
.form-input,
.form-select,
.form-textarea,
 .form-item input[type='select'], .form-item textarea  {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-body);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s ease;
}
.form-item input[type='text']  {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-body);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main) !important;
    transition: all 0.2s ease;
}

.form-input:not(.error),
.form-select:not(.error),
.form-textarea:not(.error),
.form-item input[type='text']:not(.error), .form-item input[type='select']:not(.error), .form-item textarea:not(.error){
border: 1px solid var(--border);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #cbd5e1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 93, 174, 0.1);
  
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
}
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

.form-select {
    
}

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

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 93, 174, 0.02);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 93, 174, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(0, 93, 174, 0.1) 0%, rgba(0, 93, 174, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.upload-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-input {
    display: none;
}

.file-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 93, 174, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--primary);
}

.file-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
}

.file-tag button:hover {
    color: var(--error);
}

/* Submit Section */
.submit-section {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(0, 93, 174, 0.02) 100%);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 93, 174, 0.25);
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 93, 174, 0.3);
}

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

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Note */
.form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    margin-top: 1.25rem;
}

.note-icon {
    flex-shrink: 0;
    color: var(--accent);
}

.note-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success);
}

.modal-title {
    font-family: 'Roboto', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn {
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .header {
        padding: 1rem;
    }

    .brand-text {
        font-size: 1rem;
    }
}

.form-checkboxes .form-item, .form-radios .form-item {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Style radio */
/*
.form-type-radios {
    margin-bottom: 1rem;
}
*/
input[type="radio"] {
    width: 0;
    height: 0;
    cursor: initial;
}

.form-type-radios > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-radios {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; */
}

.contain-other-option {
    display: flex;
    flex-direction: column;
}

.contain-other-option .wrapper {
    order: 2;
}

.form-type-radio {
    margin: 0;
}

.form-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-type-radio .option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.form-type-radio .option::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-type-radio .option:hover {
    color: var(--primary);
}

.form-type-radio .option:hover::before {
    border-color: var(--primary-light);
}

.form-radio:focus + .option::before {
    box-shadow: 0 0 0 3px rgba(0, 93, 174, 0.15);
}

.form-radio:checked + .option {
    color: var(--primary);
    font-weight: 600;
}

.form-radio:checked + .option::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 4px #fff;
}

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

/* Style checkbox */
/*
.form-type-checkboxes {
    margin-bottom: 1rem;
}
*/
.form-type-checkboxes > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nganh_hoc .form-checkboxes{
    display: flex;
   justify-content: space-between;
}
.form-type-checkbox {
    margin: 0;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-type-checkbox .option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.form-type-checkbox .option::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-type-checkbox .option:hover {
    color: var(--primary);
}

.form-type-checkbox .option:hover::before {
    border-color: var(--primary-light);
}

.form-checkbox:focus + .option::before {
    box-shadow: 0 0 0 3px rgba(0, 93, 174, 0.15);
}

.form-checkbox:checked + .option {
    color: var(--primary);
    font-weight: 600;
}

.form-checkbox:checked + .option::before {
    border-color: var(--primary);
    background: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}


.hotline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d1d5db;
    text-align: center;
    color: #005dae;
}

.hotline-container p {
    margin: 0;
}

.hotline-contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
}

@media (min-width: 800px) {
    .hotline-contacts {
        grid-template-columns: repeat(3, 1fr);
        /* Chia 3 cột đều nhau */
    }
}

.hotline-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0 1rem;
    color: #2563eb;
}

.hotline-contact a {
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}
.hotline-contact span {
    color: #2563eb;
}
.form-actions{
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}
.btn-back:hover {
    text-decoration: underline;
    color: var(--error);
}
.btn-back {
    padding: 0.5rem 1rem;
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 550;
    text-decoration: underline;

}
.form-actions .btn-gui-ho-so {
    padding: 0.5rem 1rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.gia_tri_ban_than,
.mqh_gia_dinh {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.file-cccd .form-grid {
   display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

.form-item-file-cccd input[type="submit"]{
    display: none;
}
