:root {
    --green-700: #2f8f46;
    --green-600: #3f9e55;
    --green-500: #4da659;
    --green-100: #e3f4e6;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
    background: #e2eee3;
    height: 68px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.2rem; color: var(--dark); }
.brand-year { font-weight: 700; font-size: .9rem; color: var(--green-600); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3f9a4e 0%, #54b57f 100%);
    color: #fff;
    padding: 18px 0 24px;
}
.hero-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero-circle-left { width: 136px; height: 136px; left: 42px; top: 55px; }
.hero-circle-right { width: 400px; height: 250px; right: -80px; top: -140px; border-radius: 50%; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.2);
    padding: .3rem .9rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
}
.hero-title { font-size: 2.2rem; font-weight: 800; margin: .6rem 0 .5rem; letter-spacing: -.5px; }
.hero-text { max-width: 700px; margin: 0 auto .75rem; font-size: .95rem; line-height: 1.55; }
.hero-link { color: #fff; font-size: .8rem; font-weight: 600; text-decoration: underline; }
.hero-link:hover { color: #fff; opacity: .85; }

/* ---------- Form card ---------- */
.form-wrap { max-width: 1015px; margin-top: 18px; margin-bottom: 4rem; flex: 1 0 auto; }
.form-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
}
.form-card-head { background: var(--dark); color: #fff; padding: 22px 34px 20px; }
.form-card-head h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .35rem; display: flex; align-items: center; gap: .7rem; }
.form-card-head h2 i { color: #4ade80; }
.form-card-head p { margin: 0; font-size: .9rem; color: #cbd5e1; }
.req-light { color: #f87171; }
.form-card-body { padding: 52px 34px 30px; }

/* section titles */
.section-title {
    display: flex; align-items: center; gap: .6rem;
    color: var(--green-600); font-weight: 700; font-size: .95rem;
    letter-spacing: .2px; margin: 0 0 1.1rem;
}
.section-title-plain { font-size: .88rem; }
.section-title .step {
    width: 25px; height: 25px; border-radius: 50%;
    background: var(--green-100); color: var(--green-700);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700;
}
#regForm > .row + .section-title,
#regForm .section-title:not(.section-title-plain) { margin-top: 1.9rem; }

/* labels & inputs */
.form-label { font-size: .88rem; font-weight: 500; color: var(--dark); margin-bottom: .45rem; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
.form-control, .form-select {
    height: 53px; border: 1px solid var(--border); border-radius: 10px;
    padding: .6rem 1.05rem; font-size: 1rem; color: #000;
    background-color: #fff;
}
.form-control::placeholder { color: #9ca3af; }
.form-select { cursor: pointer; }
.form-select:disabled { background-color: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.form-control:focus, .form-select:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 .22rem rgba(77,166,89,.18);
}

/* transporter radio cards */
.type-card {
    display: flex; gap: .8rem; align-items: flex-start;
    height: 100%; padding: 1.05rem 1.1rem; cursor: pointer;
    border: 1.5px solid var(--border); border-radius: 14px;
    background: #fff; transition: all .15s ease;
}
.type-card:hover { border-color: #9bd0a5; }
.type-card.active { border-color: var(--green-600); border-width: 2px; background: #eef9f0; }
.type-card .form-check-input { margin-top: .3rem; flex-shrink: 0; width: 1.1em; height: 1.1em; cursor: pointer; }
.type-card .form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }
.type-card strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--dark); }
.type-card small { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; line-height: 1.4; }

/* submit */
.btn-submit {
    background: var(--green-600); color: #fff; border: 0;
    height: 63px; border-radius: 10px;
    font-size: 1.1rem; font-weight: 700;
    box-shadow: 0 6px 14px rgba(63,158,85,.3);
    transition: background .15s, transform .1s;
}
.btn-submit:hover, .btn-submit:focus { background: var(--green-700); color: #fff; }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .75; }
.btn-submit i { margin-right: .5rem; }
.form-note { text-align: center; font-size: .72rem; color: var(--muted); margin: 1.1rem 0 .4rem; }

/* validation */
.invalid-feedback { font-size: .8rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); background-image: none; }
.form-select.is-invalid { background-image: var(--bs-form-select-bg-img); }

/* success */
.success-box { padding: 2rem 1rem 1rem; }
.success-icon { font-size: 4rem; color: var(--green-600); }
.success-box h3 { font-weight: 800; margin: .5rem 0 1rem; }

/* membership card */
.card-area { max-width: 560px; margin: 0 auto; container-type: inline-size; }
.member-card {
    position: relative; overflow: hidden; text-align: left; color: #fff;
    aspect-ratio: 1.52 / 1; border-radius: 6cqw;
    padding: 6cqw; display: flex; flex-direction: column;
    background: linear-gradient(135deg, #3f8f4f 0%, #4ea559 45%, #2c6b4a 100%);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.mc-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.mc-circle-tr { width: 48cqw; height: 48cqw; right: -8cqw; top: -22cqw; }
.mc-circle-bl { width: 16cqw; height: 16cqw; left: -4cqw; bottom: 14cqw; background: rgba(255,255,255,.1); }
.mc-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.mc-brand { display: flex; align-items: center; gap: 3.5cqw; }
.mc-logo { width: 9cqw; height: 9cqw; border-radius: 50%; }
.mc-title { font-weight: 700; font-size: 3.7cqw; line-height: 1.25; letter-spacing: .2px; }
.mc-badge {
    background: rgba(255,255,255,.25); font-weight: 700; font-size: 3.2cqw;
    padding: 1.4cqw 5cqw; border-radius: 99px;
}
.mc-label { position: relative; font-size: 2.6cqw; letter-spacing: .18em; opacity: .85; margin-top: 5.5cqw; }
.mc-name { position: relative; font-size: 5.6cqw; font-weight: 800; margin-top: 1.6cqw; line-height: 1.15; overflow-wrap: anywhere; }
.mc-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.mc-value { font-size: 4.1cqw; font-weight: 700; margin-top: 1.4cqw; }
.mc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; }
.mc-foot {
    position: relative; margin-top: auto; padding-top: 3cqw;
    border-top: 1px solid rgba(255,255,255,.3);
    display: flex; justify-content: space-between; font-size: 2.8cqw;
}

@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body * { visibility: hidden; }
    #cardArea, #cardArea * { visibility: visible; }
    #cardArea { position: absolute; left: 0; top: 0; width: 100%; max-width: 135mm; }
    .member-card { box-shadow: none; }
    .no-print { display: none !important; }
}

/* footer */
.site-footer {
    background: var(--dark); color: #cbd5e1;
    text-align: center; font-size: .9rem; padding: 1.5rem 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .brand-name { font-size: 1rem; }
    .hero-title { font-size: 1.7rem; }
    .hero-circle-left { display: none; }
    .form-card { border-radius: 18px; }
    .form-card-head, .form-card-body { padding-left: 20px; padding-right: 20px; }
    .form-card-body { padding-top: 32px; }
}
