*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-primary: #10b981;
    --green-secondary: #059669;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --blue: #0891b2;
    --text-dark: #111827;
    --text-mid: #374151;
    --text-soft: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-focus: #10b981;
    --bg-page: #f0fdf8;
    --bg-card: #ffffff;
    --bg-input: #f9fafb;
    --shadow-card: 0 4px 24px rgba(16, 185, 129, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 40px rgba(16, 185, 129, 0.13), 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 9px;
    --transition: 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
    max-width: 860px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-secondary));
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.logo-badge-sm {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.68rem;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.navbar-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: var(--border);
    flex-shrink: 0;
}

.navbar-portal-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-soft);
    white-space: nowrap;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(145deg, #0d9488 0%, #059669 40%, #0891b2 100%);
    padding: 4rem 2rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(8, 145, 178, 0.3) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 80%, rgba(5, 150, 105, 0.25) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
}

.badge-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a7f3d0;
    position: relative;
    flex-shrink: 0;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(167, 243, 208, 0.4);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 500px;
    font-weight: 400;
}

.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.25rem;
}

.notice-svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

/* ── MAIN ── */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 2.75rem auto;
    padding: 0 1.5rem 4rem;
}

/* ── CARD ── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.75rem 2.75rem 2.25rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* ── CARD HEADER ── */
.card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ── FORM LAYOUT ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.form-group.full-width {
    margin-bottom: 1.25rem;
}

/* ── LABELS ── */
label:not(.radio-card):not(.checkbox-label):not(.group-label) {
    font-size: 0.835rem;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.01em;
   
}

.group-label {
    font-size: 0.835rem;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0.75rem;
}

.required {
    color: #ef4444;
    margin-left: 1px;
}

/* ── INPUTS, SELECT, TEXTAREA ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.68rem 0.95rem;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: var(--text-lighter);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
    border-color: #a7f3d0;
    background: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: var(--border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.65;
}

.field-hint {
    font-size: 0.775rem;
    color: var(--text-lighter);
    margin-top: 0.2rem;
    line-height: 1.5;
}

/* ── RADIO CARDS ── */
.radio-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.radio-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.radio-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 0.15rem;
    transition: background var(--transition);
}

.radio-card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--green-secondary);
    transition: stroke var(--transition);
}

.radio-card-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: color var(--transition);
}

.radio-card-desc {
    font-size: 0.78rem;
    color: var(--text-soft);
    line-height: 1.45;
}

.radio-check-indicator {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radio-card:hover .radio-card-inner {
    border-color: #a7f3d0;
    background: #f0fdf8;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.09);
}

.radio-card:hover .radio-card-icon {
    background: #d1fae5;
}

.radio-card.selected .radio-card-inner {
    border-color: var(--green-primary);
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.radio-card.selected .radio-card-icon {
    background: #d1fae5;
}

.radio-card.selected .radio-check-indicator {
    border-color: var(--green-primary);
    background: var(--green-primary);
}

.radio-card.selected .radio-check-indicator::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.radio-card.selected .radio-card-title {
    color: var(--green-secondary);
}

/* ── CHECKBOX ── */
.consent-group {
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--bg-input);
    margin-top: 2px;
    transition: all var(--transition);
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--green-primary);
}

.checkbox-text {
    font-size: 0.835rem;
    color: var(--text-soft);
    line-height: 1.58;
}

.inline-link {
    color: var(--green-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inline-link:hover {
    color: var(--teal);
}

/* ── ERROR ── */
.form-error {
    font-size: 0.835rem;
    color: #dc2626;
    min-height: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.88rem 1.5rem;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 2px 14px rgba(16, 185, 129, 0.32);
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-spinner {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-submit:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.btn-svg {
    width: 17px;
    height: 17px;
    stroke: #ffffff;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn-submit:hover:not(:disabled) .btn-svg {
    transform: translateX(3px);
}

.btn-submit.btn-secondary {
    background: #f0fdf8;
    color: var(--green-secondary);
    border: 1.5px solid #a7f3d0;
    box-shadow: none;
    margin-top: 1.25rem;
}

.btn-submit.btn-secondary .btn-svg {
    stroke: var(--green-secondary);
}

.btn-submit.btn-secondary:hover:not(:disabled) {
    background: #d1fae5;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.14);
}

.btn-submit.btn-secondary:hover:not(:disabled) .btn-svg {
    transform: rotate(-20deg);
}

/* ── SUCCESS CARD ── */
.success-card {
    text-align: center;
    padding: 3.5rem 3rem;
}

.success-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    margin: 0 auto 1.5rem;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-svg {
    width: 34px;
    height: 34px;
    stroke: var(--green-secondary);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.72;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.reference-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 1.1rem 3rem;
    margin-bottom: 1.35rem;
}

.ref-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
}

.ref-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-secondary);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.success-note {
    font-size: 0.845rem;
    color: var(--text-lighter);
    line-height: 1.65;
    max-width: 420px;
    margin: 0 auto;
}

.success-note strong {
    color: var(--text-mid);
}

/* ── FOOTER ── */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 2.25rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.footer-brand-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
}

.footer-dept {
    font-size: 0.775rem;
    color: var(--text-soft);
}

.footer-notice {
    font-size: 0.74rem;
    color: var(--text-lighter);
    line-height: 1.65;
    max-width: 560px;
    margin: 0.25rem auto 0;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-link {
    font-size: 0.775rem;
    color: var(--green-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-divider {
    color: var(--border);
    font-size: 0.9rem;
}