/* ========================================
   GetMyCard - Smart Card Request System
   Theme: White, Blue, Navy, Yellow
   Font: Kanit
   ======================================== */

/* === CSS Variables === */
:root {
    --navy: #1a237e;
    --navy-dark: #0d1654;
    --blue: #2196F3;
    --blue-light: #64B5F6;
    --blue-lighter: #E3F2FD;
    --yellow: #FFC107;
    --yellow-light: #FFF8E1;
    --yellow-dark: #F9A825;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-500: #9E9E9E;
    --gray-700: #616161;
    --gray-900: #212121;
    --red: #F44336;
    --green: #4CAF50;
    --green-light: #E8F5E9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.header-icon {
    font-size: 2rem;
    color: var(--yellow);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header h1 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.header-subtitle {
    color: var(--blue-light);
    font-size: 0.85rem;
    font-weight: 300;
}

.btn-back {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

/* === Hero Section === */
.hero {
    flex: 1;
    background: linear-gradient(180deg, var(--blue-lighter) 0%, var(--gray-50) 60%);
    padding: 48px 0 60px;
}

.hero-text {
    text-align: center;
    margin-bottom: 40px;
}

.hero-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.hero-text p {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.15rem !important;
    color: var(--blue) !important;
    font-weight: 400 !important;
    margin-bottom: 4px;
}

/* === Card Grid === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.user-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--navy));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--yellow);
}

.user-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: var(--transition);
}

.card-icon-blue {
    background: linear-gradient(135deg, var(--blue-lighter), #BBDEFB);
    color: var(--blue);
}

.card-icon-navy {
    background: linear-gradient(135deg, #E8EAF6, #C5CAE9);
    color: var(--navy);
}

.card-icon-yellow {
    background: linear-gradient(135deg, var(--yellow-light), #FFE082);
    color: var(--yellow-dark);
}

.card-icon-green {
    background: linear-gradient(135deg, var(--green-light), #A5D6A7);
    color: #2E7D32;
}

.user-card:hover .card-icon-wrap {
    transform: scale(1.1);
}

.user-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}

.user-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 300;
}

.card-arrow {
    margin-top: 16px;
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: var(--transition);
}

.user-card:hover .card-arrow {
    color: var(--blue);
    transform: translateX(4px);
}

/* === Status Section on Home === */
.status-section {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.btn-status {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--navy);
    border: none;
    padding: 14px 36px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* === Footer === */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300;
    margin-top: auto;
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--navy);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.breadcrumb span {
    color: var(--gray-700);
    font-weight: 400;
}

/* === Main Content === */
.main-content {
    flex: 1;
    padding-bottom: 40px;
    background: var(--gray-50);
}

/* === Form Card === */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.form-header {
    background: linear-gradient(135deg, var(--blue-lighter), #BBDEFB);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 3px solid var(--blue);
}

.form-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
}

.form-header-navy {
    background: var(--navy);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.35);
}

.form-header-yellow {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}

.form-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
}

.form-header p {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 300;
}

/* === Form Sections === */
.form-section {
    padding: 24px 32px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-lighter);
}

.section-title i {
    color: var(--blue);
}

.section-desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 16px;
    font-weight: 300;
    line-height: 1.7;
}

/* === Form Elements === */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.col-3 {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

.col-4 {
    flex: 0 0 calc(33.33% - 11px);
    min-width: 0;
}

.col-6 {
    flex: 0 0 calc(50% - 8px);
    min-width: 0;
}

.col-8 {
    flex: 0 0 calc(66.66% - 5px);
    min-width: 0;
}

.col-12 {
    flex: 0 0 100%;
    min-width: 0;
}

label {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.required {
    color: var(--red);
    font-weight: 600;
}

.form-control {
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.form-control::placeholder {
    color: var(--gray-500);
    font-weight: 300;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23616161' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 36px;
}

/* === Radio Buttons === */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    transition: var(--transition);
    font-size: 0.9rem;
    background: var(--white);
}

.radio-item:hover {
    border-color: var(--blue-light);
    background: var(--blue-lighter);
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--blue);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-item input[type="radio"]:checked+.radio-custom {
    border-color: var(--blue);
}

.radio-item input[type="radio"]:checked+.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-item input[type="radio"]:checked~span:last-child {
    color: var(--navy);
    font-weight: 500;
}

.conditional-input {
    padding-left: 48px;
}

/* === Upload Area === */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
    position: relative;
}

.upload-area:hover {
    border-color: var(--blue);
    background: var(--blue-lighter);
}

.upload-area>i {
    font-size: 2.5rem;
    color: var(--blue-light);
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.upload-link {
    color: var(--blue);
    font-weight: 500;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.8rem !important;
    color: var(--gray-500) !important;
    margin-top: 4px;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* === Photo Upload Layout === */
.photo-upload-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}

.photo-example-card {
    background: #f8f9ff;
    border: 1.5px dashed #C5CAE9;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.photo-example-card h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-example-img-wrap {
    width: 120px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid var(--white);
    background: var(--white);
}

.photo-example-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-example-list {
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-top: 16px;
    text-align: left;
    padding-left: 20px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .photo-upload-layout {
        grid-template-columns: 1fr;
    }
    .photo-example-card {
        padding: 16px;
    }
}

.upload-info {
    background: var(--blue-lighter);
    color: var(--navy);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
    border-left: 4px solid var(--blue);
}

.upload-info i {
    color: var(--blue);
    font-size: 1.1rem;
}

.upload-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 10px;
}

/* === QR Payment Card === */
.payment-qr-card {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, var(--blue-lighter) 100%);
    border: 1.5px solid #c5cae9;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.payment-qr-image {
    flex-shrink: 0;
    width: 180px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.payment-qr-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.payment-qr-details {
    flex: 1;
}

.payment-qr-details h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-qr-details h4 i {
    color: var(--blue);
    font-size: 1.1rem;
}

.payment-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.payment-label {
    color: var(--gray-500);
    font-weight: 400;
    min-width: 90px;
    flex-shrink: 0;
}

.payment-value {
    color: var(--navy);
    font-weight: 400;
}

.payment-value strong {
    font-size: 1.1rem;
    color: var(--navy);
    letter-spacing: 1px;
}

.payment-note {
    margin-top: 12px;
    background: var(--blue-lighter);
    color: var(--navy);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 300;
    border-left: 3px solid var(--blue);
}

.payment-note i {
    color: var(--blue);
    font-size: 1rem;
    flex-shrink: 0;
}

/* === Note Box === */
.note-box {
    background: var(--yellow-light);
    border-left: 4px solid var(--yellow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--yellow-dark);
    margin-bottom: 12px;
    font-size: 1rem;
}

.note-header i {
    font-size: 1.2rem;
}

.note-list {
    list-style: none;
    padding: 0;
}

.note-list li {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.8;
}

.note-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--yellow-dark);
    font-weight: bold;
}

.note-list a {
    color: var(--blue);
    text-decoration: none;
}

.note-list a:hover {
    text-decoration: underline;
}

/* === Form Actions === */
.form-actions {
    padding: 24px 32px;
    text-align: center;
    background: var(--gray-50);
}

.btn-submit {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--navy);
    border: none;
    padding: 14px 48px;
    font-family: 'Kanit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.5);
}

/* === Search Box (Status Page) === */
.search-box {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
}

.btn-search {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background: var(--navy);
}

/* === Status Info Grid === */
.status-info-grid {
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    padding: 6px 0;
    font-size: 0.9rem;
    gap: 8px;
}

.info-label {
    color: var(--gray-500);
    font-weight: 400;
    min-width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: var(--gray-900);
    font-weight: 400;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    display: block;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* === Progress Stepper === */
.progress-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 0;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    flex: 0 0 auto;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.step.completed .step-icon {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.35);
}

.step.active .step-icon {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.35);
    animation: pulse-step 2s infinite;
}

.step.pending .step-icon {
    background: var(--gray-200);
    color: var(--gray-500);
}

.step.rejected .step-icon {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.35);
}

@keyframes pulse-step {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(33, 150, 243, 0.35);
    }

    50% {
        box-shadow: 0 3px 20px rgba(33, 150, 243, 0.6);
    }
}

.step-label {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--gray-700);
    max-width: 100px;
    line-height: 1.4;
}

.step-date {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 4px;
    font-weight: 300;
}

.step-line {
    height: 3px;
    flex: 1;
    min-width: 30px;
    max-width: 80px;
    background: var(--gray-200);
    margin-top: 22px;
    border-radius: 2px;
    transition: var(--transition);
}

.step-line.completed {
    background: var(--green);
}

/* === Conditional Animation === */
.conditional-section {
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Flash Messages === */
.flash-messages {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.flash-msg {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin: 10px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: var(--green-light);
    color: #2E7D32;
    border-left: 4px solid var(--green);
}

.flash-error,
.flash-danger {
    background: #FFEBEE;
    color: #c62828;
    border-left: 4px solid var(--red);
}

.flash-warning {
    background: var(--yellow-light);
    color: #F57F17;
    border-left: 4px solid var(--yellow);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .payment-qr-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .payment-qr-image {
        width: 160px;
    }

    .payment-qr-details h4 {
        justify-content: center;
    }

    .payment-info-row {
        justify-content: center;
    }

    .payment-note {
        justify-content: center;
        text-align: left;
    }

    .header h1 {
        font-size: 1.05rem;
    }

    .header-subtitle {
        font-size: 0.75rem;
    }

    .header-icon {
        font-size: 1.6rem;
    }

    .hero {
        padding: 32px 0 40px;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .user-card {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .card-icon-wrap {
        margin: 0;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .card-arrow {
        margin-top: 0;
        margin-left: auto;
    }

    .user-card h3 {
        font-size: 0.95rem;
    }

    .user-card p {
        font-size: 0.8rem;
    }

    .form-header {
        padding: 20px;
    }

    .form-header h2 {
        font-size: 1rem;
    }

    .form-section {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .col-3,
    .col-4,
    .col-6,
    .col-8,
    .col-12 {
        flex: 0 0 100%;
    }

    .section-title {
        font-size: 0.95rem;
    }

    .form-actions {
        padding: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    .btn-search {
        justify-content: center;
    }

    .info-row {
        flex-direction: column;
        gap: 2px;
    }

    .info-label {
        min-width: 0;
        font-size: 0.8rem;
    }

    .progress-stepper {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0 16px 8px;
        gap: 0;
    }

    .step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        min-width: 0;
        gap: 12px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-label {
        max-width: none;
        font-size: 0.85rem;
    }

    .step-date {
        margin-top: 0;
        margin-left: 8px;
    }

    .step-line {
        width: 3px;
        height: 24px;
        min-width: 3px;
        max-width: 3px;
        margin-top: 0;
        margin-left: 18px;
    }

    .radio-inline {
        flex-direction: column;
        gap: 10px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 12px 16px;
    }

    .header h1 {
        font-size: 0.9rem;
    }

    .header-subtitle {
        font-size: 0.7rem;
    }

    .header-icon {
        font-size: 1.3rem;
    }

    .header-logo {
        gap: 10px;
    }

    .btn-back {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 24px 0 32px;
    }

    .hero-text h2 {
        font-size: 1.15rem;
    }

    .hero-text p {
        font-size: 0.85rem;
    }

    .user-card {
        padding: 16px;
    }

    .card-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .btn-status {
        font-size: 0.9rem;
        padding: 12px 28px;
    }

    .form-header {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .form-header-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .form-section {
        padding: 16px;
    }

    .upload-area {
        padding: 20px;
    }

    .upload-area>i {
        font-size: 2rem;
    }

    .note-box {
        padding: 16px;
    }

    .form-actions {
        padding: 16px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1080px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .card-grid {
        gap: 32px;
    }

    .user-card {
        padding: 40px 28px;
    }
}

/* === Loading Overlay Modal === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.25s ease-out;
}

.loading-box {
    background: #ffffff;
    padding: 36px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: translateY(0);
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-box h3 {
    margin: 18px 0 8px 0;
    color: var(--navy, #1e293b);
    font-size: 1.3rem;
    font-weight: 600;
}

.loading-box p.loading-sub {
    color: var(--gray-600, #64748b);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 16px 0;
}

.loading-warning {
    background-color: #fff1f2;
    border: 1.5px solid #fecdd3;
    color: #e11d48;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

.loading-warning i {
    font-size: 1.2rem;
    color: #dc2626;
    flex-shrink: 0;
}

.loading-warning span {
    color: #be123c;
}

.loading-warning strong {
    color: #9f1239;
    font-weight: 700;
    text-decoration: underline;
}

/* Circular Spinner */
.spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--blue, #2563eb);
    border-radius: 50%;
    animation: spinOverlay 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spinOverlay {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Disabled State for Submit Button */
button[type="submit"]:disabled,
.btn-submit:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(20%);
}