:root {
    --primary-color: #00CED1; /* Teal/Cyan from the image */
    --primary-dark: #003335;
    --accent-color: #FFC500; /* Golden Yellow from the image */
    --text-main: #111827;
    --text-muted: #4B5563;
    --bg-gradient-start: #FFFFFF;
    --bg-gradient-end: #E0F2FE; /* Soft light cyan/blue */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 165, 170, 0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.text-bold-highlight {
    font-weight: 800;
    color: #000000;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-main);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 206, 209, 0.1);
    padding: 10px 16px;
}

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

.logo {
    height: 32px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.06);
}

.badge-tag {
    background-color: var(--primary-dark);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-tag:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 16px rgba(255, 197, 0, 0.4);
    text-decoration: none;
}

/* Mobile Container */
.mobile-layout {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

/* Benefit Card Layout (matching user's uploaded image exactly) */
.benefits-card-container {
    margin-bottom: 30px;
}

.luong-cung-box {
    background: #FFFFFF;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    position: relative;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.luong-cung-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.badge-luong {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 18px;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.luong-cung-box:hover .badge-luong {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.luong-cung-box:hover .badge-luong .dot {
    background-color: var(--primary-dark);
}

.badge-luong .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.salary-value {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: inherit;
}

.salary-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.salary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 206, 209, 0.2);
}

.salary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.salary-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1.3;
    line-height: 1.3;
    text-align: left;
}

.salary-label .bullet {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
}

.salary-value-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
    text-align: right;
}

.val-bold {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    line-height: 1.1;
}

.val-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.quyen-loi-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin: 20px 0 16px;
    letter-spacing: 0.5px;
}

.capsules-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.capsule-item {
    background: #FFFFFF;
    border: 2px solid var(--accent-color);
    border-radius: 99px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.capsule-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #FFFFFF 0%, #E6FFFA 100%);
    border-color: var(--primary-color);
}

.capsule-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.capsule-item:hover .capsule-icon {
    background-color: rgba(0, 206, 209, 0.1);
}

.capsule-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.capsule-item:hover .capsule-icon svg {
    transform: rotate(15deg) scale(1.2);
}

.capsule-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capsule-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.capsule-text span {
    font-size: 0.75rem;
    color: #4B5563;
    font-weight: 500;
    margin-top: 1px;
}

/* Registration Form Card */
.form-section {
    margin-top: 20px;
}

.form-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px 20px;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

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

.form-header h2 {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: #F9FAFB;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.15);
}

/* custom radio buttons inside grid */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.radio-card {
    cursor: pointer;
    position: relative;
}

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

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    height: 100%;
    text-align: center;
}

.card-content .icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-content .text {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.radio-card:hover .card-content {
    border-color: var(--primary-color);
    background-color: #F0FDF4;
}

.radio-card input:checked + .card-content {
    border-color: var(--primary-color);
    background-color: #E6FFFA;
}

.radio-card input:checked + .card-content .text {
    color: var(--primary-color);
}

/* Submit Button */
.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 197, 0, 0.3);
    margin-top: 24px;
}

.btn-submit:hover {
    background-color: #E5B100;
    transform: translateY(-1px);
}

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

/* Loader */
.loader {
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top: 3px solid var(--text-main);
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.form-message {
    margin-top: 14px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-message.success {
    background-color: #DEF7EC;
    color: #03543F;
}

.form-message.error {
    background-color: #FDE8E8;
    color: #9B1C1C;
}

/* Footer */
.mobile-footer {
    max-width: 480px;
    margin: 24px auto 0;
    text-align: center;
    padding: 0 16px;
}

.mobile-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Success Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 53, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.modal-title {
    color: #03543F;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

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

.modal-info {
    background-color: #F3F4F6;
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 24px;
}

.modal-info p {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.5;
    font-weight: 500;
}

.btn-close {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 206, 209, 0.25);
}

.btn-close:hover {
    background-color: #00B5B8;
}
