:root {
    --primary:     #0a1628;
    --primary-2:   #142340;
    --accent:      #4dd0c5;
    --accent-2:    #2da89d;
    --accent-blue: #6ba3d6;
    --text:        #1a2332;
    --text-muted:  #5a6678;
    --text-light:  #c8d3e0;
    --border:      #e1e7ef;
    --bg:          #f7f9fc;
    --bg-card:     #ffffff;
    --success:     #2d7a4f;
    --success-bg:  #e8f5ee;
    --error:       #b3261e;
    --error-bg:    #fdecea;
    --radius:      8px;
    --shadow:      0 1px 3px rgba(10, 22, 40, 0.06),
                   0 4px 16px rgba(10, 22, 40, 0.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text); background: var(--bg);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }

/* TOPBAR */
.topbar {
    background: var(--primary);
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; position: sticky; top: 0; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px;
    border: 2px solid var(--accent-blue); border-radius: 50%;
    position: relative; flex-shrink: 0;
}
.brand-mark::before {
    content: ''; position: absolute; inset: 4px;
    border: 1.5px solid var(--accent); border-radius: 50%;
    border-left-color: transparent; border-bottom-color: transparent;
    transform: rotate(45deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .top { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent-blue); }
.brand-text .bot { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-top: 3px; }
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: transparent; color: white;
    border: 1.5px solid var(--accent); border-radius: 6px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all .15s ease; white-space: nowrap;
}
.back-btn:hover { background: var(--accent); color: var(--primary); transform: translateX(-2px); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: white; padding: 56px 24px 80px;
    text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(77,208,197,0.10) 0%, transparent 60%);
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
    font-size: 12px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.hero-title {
    font-size: 38px; font-weight: 700;
    margin: 0 0 14px; letter-spacing: -0.5px;
}
.hero-subtitle { font-size: 16px; color: var(--text-light); margin: 0; }

/* CONTAINER */
.container {
    max-width: 880px; margin: -40px auto 64px;
    padding: 0 24px; position: relative; z-index: 2;
}
.container-narrow { max-width: 640px; }

.card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 36px; margin-bottom: 22px;
}

.notice {
    background: linear-gradient(135deg, #e8faf8 0%, #d6f4f0 100%);
    border-left: 3px solid var(--accent);
    padding: 14px 18px; border-radius: 4px;
    font-size: 14px; color: #0d4f48; margin-bottom: 24px;
}
.notice strong { color: #093530; }

.section-title { font-size: 20px; font-weight: 600; color: var(--primary); margin: 0 0 4px; }
.section-desc  { font-size: 14px; color: var(--text-muted); margin: 0 0 24px; }

/* FORM */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: 6px;
    font-size: 15px; font-family: inherit; background: white; color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(77, 208, 197, 0.18);
}

/* PACKAGES */
.category { margin-bottom: 24px; }
.category-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin: 0 0 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.package-option {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    cursor: pointer; margin-bottom: 10px; background: white;
    transition: all .15s ease;
}
.package-option:hover { border-color: var(--accent); background: #fafdfd; }
.package-option input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px;
    border: 1.5px solid #c5cdd9; border-radius: 50%;
    margin: 0; flex-shrink: 0; cursor: pointer;
    transition: border-color .15s, border-width .15s;
}
.package-option input[type="radio"]:checked {
    border-color: var(--accent); border-width: 6px;
}
.package-option:has(input:checked) {
    border-color: var(--accent); background: #f0fbfa;
    box-shadow: 0 0 0 1px var(--accent);
}
.package-info {
    flex: 1; display: flex;
    justify-content: space-between; align-items: center; gap: 16px;
}
.package-label { font-size: 15px; font-weight: 500; }
.package-price { font-size: 22px; font-weight: 700; color: var(--primary); white-space: nowrap; }

#ieee-block {
    background: #f0fbfa; border: 1px solid #cdeeea;
    border-radius: var(--radius); padding: 20px 22px; margin-top: 22px;
}
#ieee-block .hint { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; }

.terms-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.terms-row input[type="checkbox"] {
    margin-top: 3px; width: 16px; height: 16px;
    accent-color: var(--accent); cursor: pointer;
}

.submit-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px; padding-top: 26px; margin-top: 26px;
    border-top: 1px solid var(--border); flex-wrap: wrap;
}
.secure-note { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

button[type="submit"], .btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 6px; font-size: 14px;
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: all .15s ease; border: 1.5px solid; font-family: inherit;
}
button[type="submit"], .btn-primary {
    background: var(--primary); color: white; border-color: var(--primary);
}
button[type="submit"]:hover, .btn-primary:hover {
    background: var(--primary-2); border-color: var(--primary-2);
}
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); }

/* STATUS PAGES */
.status-card { padding: 48px 40px; text-align: center; }
.status-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.status-icon.success { background: var(--success-bg); }
.status-icon.error   { background: var(--error-bg); }
.status-icon.success svg { color: var(--success); }
.status-icon.error   svg { color: var(--error); }
.status-icon svg { width: 36px; height: 36px; }
.status-title { font-size: 28px; font-weight: 700; color: var(--primary); margin: 0 0 10px; }
.status-subtitle { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; }

.receipt {
    background: #f7f9fc; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 28px;
    text-align: left; margin-bottom: 24px;
}
.receipt-title {
    font-size: 12px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px;
}
.receipt-row {
    display: flex; justify-content: space-between; padding: 10px 0;
    font-size: 14px; border-bottom: 1px solid var(--border);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--text-muted); }
.receipt-row .value { color: var(--text); font-weight: 500; }
.receipt-row.total .value { font-size: 18px; font-weight: 700; color: var(--primary); }

.reason-box {
    background: var(--error-bg); border: 1px solid #f5c6c2;
    border-radius: var(--radius); padding: 16px 20px;
    font-size: 14px; color: #5a1a16; text-align: left; margin-bottom: 28px;
}
.reason-box .reason-label {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #8a2520; margin-bottom: 6px;
}
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.help-text {
    margin-top: 28px; padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
}

/* FOOTER */
.footer {
    background: var(--primary); color: var(--text-light);
    padding: 40px 32px 28px; margin-top: 32px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto;
    gap: 32px; align-items: start;
}
.footer-contact h4 {
    color: white; font-size: 14px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin: 0 0 12px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-contact a { color: var(--accent); text-decoration: none; font-size: 14px; }
.footer-bottom {
    max-width: 1100px; margin: 32px auto 0; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px; color: rgba(200, 211, 224, 0.6); text-align: center;
}

@media (max-width: 720px) {
    .topbar { padding: 12px 16px; }
    .hero { padding: 40px 20px 64px; }
    .hero-title { font-size: 28px; }
    .container { padding: 0 16px; }
    .card, .status-card { padding: 24px 20px; }
    .grid { grid-template-columns: 1fr; }
    .package-info { flex-direction: column; align-items: flex-start; gap: 4px; }
    .package-price { font-size: 19px; }
    .submit-row, .actions { flex-direction: column; align-items: stretch; }
    button[type="submit"], .btn-primary, .btn-secondary { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr; }
}