@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --primary: #0A251C;
    --primary-light: #123D2E;
    --gold: #D4AF37;
    --gold-soft: #FDF9EE;
    --gold-hover: #C59F2A;
    --accent: #B82D3B;
    --success: #166534;
    --success-bg: #F0FDF4;
    --bg: #F4F7F6;
    --surface: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --line: #E2E8F0;
    --shadow-sm: 0 4px 15px rgba(10, 37, 28, 0.05);
    --shadow-md: 0 12px 35px rgba(10, 37, 28, 0.08);
    --shadow-glow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: var(--bg);
    background-image:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(10, 37, 28, 0.04), transparent 40%);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, legend, .brand-copy strong {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
.text-success { color: var(--success); }

.page-shell {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
    padding-bottom: 40px;
}

.masthead { padding: 18px 0 22px; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--gold);
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(10, 37, 28, 0.2);
}
.brand-copy strong {
    font-size: 1.12rem;
    letter-spacing: 0.3px;
    display: block;
    line-height: 1.2;
}
.brand-copy span {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.top-links { display: flex; gap: 8px; align-items: center; }
.top-links a {
    padding: 8px 12px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.top-links a:hover { color: var(--primary); background: rgba(10, 37, 28, 0.04); }
.top-links a.btn-outline { border: 2px solid var(--line); color: var(--primary); }
.top-links a.btn-outline:hover { border-color: var(--gold); background: var(--gold-soft); }

.intro-strip { text-align: center; margin-bottom: 22px; }
.intro-strip h1 { font-size: clamp(1.95rem, 4vw, 2.6rem); margin-bottom: 8px; }
.intro-strip p { color: var(--text-muted); font-size: 0.98rem; max-width: 560px; margin: 0 auto; }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.main-column { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sticky-card { position: sticky; top: 24px; }
.side-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.side-card .card-icon {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 5.75rem;
    color: var(--gold-soft);
    opacity: 0.5;
    transform: rotate(-15deg);
    z-index: 0;
}
.side-card h3, .side-card p, .fee-board, .fee-info-box { position: relative; z-index: 1; }
.side-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.side-card p { font-size: 0.9rem; color: var(--text-muted); }

.fee-board { margin-top: 16px; display: grid; gap: 12px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 0.92rem; color: var(--text-muted); }
.fee-divider { height: 1px; background: var(--line); border-radius: 2px; }
.badge {
    background: var(--gold-soft);
    color: var(--gold-hover);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fee-row.total {
    background: var(--primary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: white;
    box-shadow: 0 10px 20px rgba(10, 37, 28, 0.15);
}
.fee-row.total span { color: rgba(255,255,255,0.8); font-weight: 500; }
.fee-row.total strong { font-size: 1.15rem; color: var(--gold); font-weight: 700; }

.fee-info-box {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(10, 37, 28, 0.03);
    border-radius: var(--radius-md);
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-main);
    border-left: 3px solid var(--gold);
}
.fee-info-box i { color: var(--gold); margin-top: 2px; }

.support-card h4 { font-size: 1rem; margin-bottom: 8px; }
.support-card p { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 500; color: var(--primary); font-size: 0.9rem; }
.support-card p i { color: var(--gold); }

.form-shell {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.8);
}

.stepper-wrapper {
    background: #FAFBFC;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}
.stepper-line {
    position: absolute;
    top: 18px;
    left: 5%;
    width: 90%;
    height: 3px;
    background: var(--line);
    z-index: 1;
}
.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 64px;
}
.step-icon {
    width: 36px;
    height: 36px;
    background: #FAFBFC;
    border: 3px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}
.step-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: var(--transition);
    text-align: center;
}
.step.is-active .step-icon {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.step.is-active .step-label { color: var(--primary); font-weight: 700; }
.step.is-done .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--gold);
}

.form-card { padding: 28px 30px; }
fieldset { border: none; padding: 0; margin: 0; }
.form-step { display: none; }
.form-step.is-active {
    display: block;
    animation: slideUp 0.4s ease forwards;
}

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

.step-header { margin-bottom: 20px; }
legend { font-size: 1.45rem; margin-bottom: 6px; width: 100%; }
.step-caption { color: var(--text-muted); font-size: 0.92rem; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.field.full { grid-column: 1 / -1; }

.static-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-floating { position: relative; }
.form-floating input {
    width: 100%;
    min-height: 52px;
    padding: 18px 14px 7px;
    border: 2px solid var(--line);
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--text-main);
    background: #FAFBFC;
    transition: var(--transition);
}
.form-floating label {
    position: absolute;
    left: 14px;
    top: 13px;
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition);
    pointer-events: none;
}
.form-floating input:focus, .form-floating input:not(:placeholder-shown) {
    background: var(--surface);
    border-color: var(--gold);
    outline: none;
    box-shadow: var(--shadow-glow);
}
.form-floating input:focus ~ label, .form-floating input:not(:placeholder-shown) ~ label {
    top: 5px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}
.form-floating input::placeholder { color: transparent; }

.field select {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--text-main);
    background: #FAFBFC;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: var(--transition);
}
.field select:focus {
    border-color: var(--gold);
    outline: none;
    background-color: var(--surface);
    box-shadow: var(--shadow-glow);
}

.file-dropzone {
    position: relative;
    border: 2px dashed var(--line);
    border-radius: var(--radius-md);
    background: #FAFBFC;
    transition: var(--transition);
    overflow: hidden;
}
.file-dropzone:hover { border-color: var(--gold); background: var(--gold-soft); }
.file-dropzone.has-file { border-color: var(--success); background: var(--success-bg); border-style: solid; }
.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-drop-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    text-align: center;
}
.file-drop-label i { font-size: 1.45rem; color: var(--gold); margin-bottom: 6px; transition: var(--transition); }
.file-dropzone.optional .file-drop-label i { color: var(--text-muted); }
.filename-display { font-weight: 700; font-size: 0.9rem; color: var(--text-main); margin-bottom: 2px; }
.file-hint { font-size: 0.78rem; color: var(--text-muted); }

.declaration-box {
    display: flex;
    gap: 12px;
    background: var(--gold-soft);
    padding: 14px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    align-items: flex-start;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.declaration-box input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.declaration-box label { font-size: 0.88rem; color: var(--primary); font-weight: 500; cursor: pointer; }

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn.full-width { width: 100%; }
.btn.primary {
    background: var(--primary);
    color: var(--gold);
    box-shadow: 0 8px 20px rgba(10, 37, 28, 0.2);
}
.btn.primary:hover { background: var(--primary-light); color: #FFF; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(10, 37, 28, 0.3); }
.btn.ghost { background: #FAFBFC; color: var(--text-main); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); background: white; }
.submit-btn {
    background: linear-gradient(135deg, var(--gold), #C59F2A);
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    font-size: 0.98rem;
}
.submit-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

.review-panel { display: flex; flex-direction: column; gap: 16px; }
.review-section {
    background: #FAFBFC;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px;
}
.review-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.review-section h4 i { color: var(--gold); }
.r-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.r-grid div span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 3px;
}
.r-grid div strong { color: var(--primary); font-size: 0.92rem; font-weight: 600; word-break: break-word; }
.r-grid.docs div { display: flex; align-items: center; gap: 8px; }
.r-grid.docs div span { display: inline; margin: 0; }

.alert {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    animation: slideUp 0.5s ease forwards;
}
.alert-icon { font-size: 1.5rem; margin-top: 2px; }
.alert-content h3 { font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 10px; font-size: 1.15rem; }
.alert-desc { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.5; }

.success-alert { background: var(--success-bg); border-color: #BBF7D0; color: var(--success); }
.success-alert .alert-icon { color: var(--success); }
.success-alert h3 { color: var(--success); }
.success-details { background: white; border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; border: 1px solid #BBF7D0; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #BBF7D0; }
.detail-row:last-child { border: none; padding-bottom: 0; }
.detail-row span { color: var(--success); font-weight: 600; }
.detail-row strong { color: var(--primary); }
.detail-row .highlight { font-size: 1.08rem; color: var(--success); }

.error-alert { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.error-alert .alert-icon { color: #DC2626; }

@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 768px) {
    .page-shell { width: min(100%, calc(100% - 16px)); }
    .masthead { padding: 12px 0 16px; }
    .topbar { flex-direction: column; align-items: flex-start; text-align: left; padding: 12px 14px; }
    .top-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 4px;
        border-top: 1px solid var(--line);
        padding-top: 12px;
    }
    .top-links a:last-child { grid-column: 1 / -1; }
    .intro-strip { text-align: left; margin-bottom: 16px; }
    .intro-strip h1 { font-size: 1.7rem; }
    .intro-strip p { font-size: 0.92rem; margin: 0; }
    .sidebar { grid-template-columns: 1fr; gap: 12px; }
    .side-card { padding: 16px; border-radius: 18px; }
    .side-card .card-icon { font-size: 4.4rem; top: -10px; right: -10px; }
    .form-card { padding: 20px 16px; }
    .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .stepper-wrapper { padding: 14px 12px 12px; }
    .stepper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 8px;
        min-width: 0;
    }
    .stepper-line { display: none; }
    .step { width: auto; }
    .step-icon { width: 34px; height: 34px; border-width: 2px; }
    .step-label { font-size: 0.66rem; line-height: 1.15; }
    .file-drop-label { text-align: left; align-items: flex-start; }
    .step-actions { flex-direction: column; gap: 10px; }
    .btn { width: 100%; }
    .form-actions { flex-direction: column-reverse !important; }
    .alert { flex-direction: column; }
    .detail-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .brand-copy strong { font-size: 1rem; }
    .brand-copy span { font-size: 0.68rem; letter-spacing: 1.4px; }
    .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    legend { font-size: 1.28rem; }
    .field select,
    .form-floating input { font-size: 0.9rem; }
}
