/* ==========================================================================
   75th AOHK Annual Conference 2026 - Corporate Landing Page Styles
   ========================================================================== */

:root {
    --primary: #0a3d62;
    --primary-2: #0f5a8e;
    --accent: #c0392b;
    --accent-2: #e85a4f;
    --gold: #d4a017;
    --text: #1a2533;
    --text-2: #4a5a6e;
    --text-muted: #4a5a6e;
    --muted: #7689a3;
    --border: #e2e8f0;
    --border-2: #d1d9e6;
    --bg: #f6f8fb;
    --bg-alt: #ffffff;
    --bg-dark: #0a3d62;
    --success: #16a34a;
    --shadow-sm: 0 1px 3px rgba(10, 61, 98, 0.06), 0 1px 2px rgba(10, 61, 98, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 61, 98, 0.08), 0 2px 4px rgba(10, 61, 98, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(10, 61, 98, 0.18);
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title-text,
.hero-title,
.hero-theme,
.form-section-title,
.register-path-title,
.nav-logo,
.nav-links a,
.btn,
.eyebrow,
.topic-card h3,
.highlight-list strong {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: "ss01", "cv11";
    letter-spacing: -0.015em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.hidden { display: none !important; }

/* ==========================================================================
   TOP NAV
   ========================================================================== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover { color: var(--primary); background: rgba(10, 61, 98, 0.05); }

.nav-links .nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.25);
}

.nav-links .nav-cta:hover {
    background: var(--accent-2);
    color: #fff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    padding: 80px 0 100px;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 20%, rgba(212, 160, 23, 0.18), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(232, 90, 79, 0.18), transparent 50%),
        linear-gradient(135deg, #0a3d62 0%, #0f5a8e 50%, #0a3d62 100%);
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-inner {
    position: relative;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 160, 23, 0.18);
    color: var(--gold);
    border: 1px solid rgba(212, 160, 23, 0.4);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-title span {
    color: var(--gold);
    background: linear-gradient(135deg, #d4a017 0%, #f0c75e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.7rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 100%;
    margin: 0 auto 14px;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.01em;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: clip;
}

.hero-theme {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--gold);
    font-style: italic;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.meta-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.meta-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(192, 57, 43, 0.5);
}

.btn-primary:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(192, 57, 43, 0.55);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.4);
}

.btn-block { width: 100%; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: 64px 0;
}

.section-alt { background: #fff; }

.section-register {
    background: linear-gradient(135deg, #0a3d62 0%, #0f5a8e 100%);
    color: #fff;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.eyebrow-light { color: var(--gold); }

.section-title-text {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.section-register .section-title-text { color: #fff; }

.section-lead {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-2);
    line-height: 1.7;
}

.section-register .section-lead { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   TOPIC GRID
   ========================================================================== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.topic-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.topic-card:hover::before { height: 100%; }

.topic-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.55;
}

/* ==========================================================================
   HIGHLIGHTS
   ========================================================================== */
.highlight-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.5;
}

.highlight-list li:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.highlight-list strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   ABOUT — Mission
   ========================================================================== */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.mission-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 28px;
    box-shadow: var(--shadow-sm);
}

.mission-card-visual {
    grid-column: 1 / -1;
}

.office-bearer-image {
    width: min(100%, 640px);
    margin: 8px auto 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.mission-eyebrow {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.mission-card p {
    font-size: 0.98rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
}

.mission-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-card ul li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.5;
}

.mission-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

@media (max-width: 900px) {
    .about-mission { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .mission-card { padding: 22px 20px; }
}

.check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1px;
}

/* ==========================================================================
   FORM CARD
   ========================================================================== */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
    max-width: 980px;
    margin: 0 auto;
}

.form-section { margin-bottom: 36px; }
.form-section:last-of-type { margin-bottom: 0; }

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-wide { grid-column: 1 / -1; }

.medical-council-wrap {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.medical-council-wrap .form-group { gap: 6px; }

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.mobile-mask-wrap {
    position: relative;
}

.mobile-mask-wrap .mobile-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: normal;
    pointer-events: none;
    user-select: none;
}

.mobile-mask-wrap .mobile-mask:empty {
    display: none;
}

.mobile-mask-wrap input.is-masked {
    color: transparent;
    caret-color: var(--text);
    -webkit-text-security: disc;
}

.mobile-mask-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.12);
}

input[type="file"] {
    padding: 10px;
    background: #f9fafb;
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.category-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    position: relative;
    border: 2px solid var(--border-2);
    border-radius: 10px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    display: block;
}

.category-card:hover {
    border-color: var(--primary);
    background: #f9fbfd;
}

.category-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f6fc 0%, #e6f0f9 100%);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.08);
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.category-label {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text);
    display: block;
}

.category-note {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 400;
}

.form-section-lead {
    margin: -8px 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.category-tag {
    display: inline-block;
    background: rgba(0, 74, 153, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 74, 153, 0.2);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.member-cat-card .card-content {
    align-items: center;
}

.readonly-field {
    background: #f1f5f9 !important;
    color: #475569 !important;
    cursor: not-allowed;
}

.price {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ==========================================================================
   FEE / PAYMENT
   ========================================================================== */
.fee-summary-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px -8px rgba(10, 61, 98, 0.4);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
}

#displayFee { font-size: 1.4rem; }

.coupon-section {
    margin-bottom: 24px;
}

.promo-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-bottom: 6px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.coupon-input-group input { flex: 1; }

.coupon-input-group button {
    padding: 0 20px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.coupon-input-group button:hover { background: var(--primary); }

.coupon-msg { font-size: 0.85rem; margin-top: 6px; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--accent); }

.payment-area {
    background: #f9fafb;
    border: 1px dashed var(--border-2);
    padding: 24px;
    border-radius: 10px;
}

.qr-container { text-align: center; margin-bottom: 22px; }

.qr-instr { margin-bottom: 14px; font-weight: 600; font-size: 0.95rem; color: var(--text); }

.qr-code {
    max-width: 200px;
    border: 2px solid #fff;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    margin: 0 auto 18px;
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: var(--muted);
    font-weight: 600;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    min-height: 180px;
    max-width: 200px;
    margin: 0 auto 18px;
}

.upi-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upi-id {
    background: #eef5fb;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    border: 1px solid #d1e3f0;
    font-weight: 500;
}

.upi-id strong { font-weight: 700; }

.upi-pay-btn {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

.upi-pay-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.payment-note {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 14px;
    font-style: italic;
}

.form-actions { margin-top: 32px; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.modal {
    background: #fff;
    padding: 40px 32px;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
    line-height: 1;
}

.success-details { margin: 18px 0; }
.success-details p { margin: 6px 0; }

.reg-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
    letter-spacing: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0a2035;
    color: #c5d1e0;
    padding-top: 56px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}

.footer-col p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 6px; }
.footer-col p strong { color: #fff; font-weight: 600; }

.footer-website a {
    color: var(--gold);
    font-weight: 600;
}

.footer-website a:hover { text-decoration: underline; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    color: #c5d1e0;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.82rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }

.footer-managed { color: #8c9bb2; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-inner > .footer-col:first-child { grid-column: 1 / -1; }
}

/* Small tablet / large phone */
@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 12px;
    }
    .nav-links.open {
        max-height: 400px;
        padding: 12px;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 12px 14px; }
    .nav-inner { position: relative; }
}

/* Mobile */
@media (max-width: 720px) {
    .container { padding: 0 18px; }
    .hero { padding: 56px 0 72px; }
    .section { padding: 48px 0; }
    .hero-meta { gap: 20px; }
    .meta-item { flex: 0 1 100%; max-width: 320px; }
    .topic-grid { grid-template-columns: 1fr; }
    .highlight-list { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; border-radius: 12px; }
    .form-grid { grid-template-columns: 1fr; gap: 14px; }
    .medical-council-wrap { grid-template-columns: 1fr; }
    .category-options { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner > .footer-col:first-child { grid-column: auto; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .section-head { margin-bottom: 28px; }
    .form-section-title { font-size: 1.05rem; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .modal { padding: 30px 22px; }
    .reg-number { font-size: 1.4rem; }
}

/* Very small phones */
@media (max-width: 400px) {
    .hero-title { font-size: 2.2rem; }
    .step-num { width: 28px; height: 28px; font-size: 0.85rem; }
    .form-section-title { gap: 8px; }
}

/* ==========================================================================
   REGISTER TOGGLE (Member vs Non-member)
   ========================================================================== */
.register-toggle-wrap {
    margin-bottom: 24px;
}

.register-path-title {
    text-align: center;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 0.2px;
}

.register-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.register-toggle-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: inherit;
    color: inherit;
}

.register-toggle-card:hover,
.register-toggle-card:focus-visible {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 74, 153, 0.12);
    outline: none;
}

.register-toggle-card:active {
    transform: translateY(0);
}

.register-toggle-card h4 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
}

.register-toggle-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.rtc-cta {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 22px;
    border-radius: 8px;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 74, 153, 0.18);
}

.rtc-cta .rtc-click {
    display: inline-block;
    margin-left: 6px;
    font-size: 1.1rem;
    animation: rtc-bounce 1.4s ease-in-out infinite;
}

.register-toggle-card:hover .rtc-cta,
.register-toggle-card:focus-visible .rtc-cta {
    background: #003a7a;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 74, 153, 0.28);
}

@keyframes rtc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 720px) {
    .register-toggle-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .register-toggle-card {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   MEMBER SEARCH
   ========================================================================== */
.search-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 18px;
    line-height: 1.6;
}

.search-box {
    margin: 18px 0 8px;
}

.search-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.12);
}

.search-icon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--text-muted);
    font-size: 1.05rem;
    background: #f7f9fc;
    border-right: 1px solid var(--border);
}

#memberSearchInput {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 14px;
    font-size: 0.98rem;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

#memberSearchBtn {
    border: none;
    border-radius: 0;
    padding: 0 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s;
    white-space: nowrap;
}

#memberSearchBtn:hover:not(:disabled) {
    background: var(--primary-dark);
}

#memberSearchBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-msg {
    margin: 10px 0 0;
    font-size: 0.9rem;
    min-height: 20px;
}

.search-msg.error { color: #c0392b; }
.search-msg.success { color: #1e7e34; }

/* ==========================================================================
   LIVE SEARCH DROPDOWN
   ========================================================================== */
.live-results {
    position: relative;
    z-index: 50;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10, 61, 98, 0.12), 0 2px 6px rgba(10, 61, 98, 0.06);
    max-height: 340px;
    overflow-y: auto;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.live-results.hidden { display: none !important; }

.live-results-header {
    padding: 10px 16px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-2);
    background: #f7f9fc;
    border-radius: 10px 10px 0 0;
}

.live-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    font-family: inherit;
    color: inherit;
}

.live-result-item:last-child { border-bottom: none; }

.live-result-item:hover,
.live-result-item.is-active {
    background: #f0f6fc;
}

.live-result-item.is-active {
    background: #e6f1fb;
    box-shadow: inset 3px 0 0 var(--primary);
}

.live-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.live-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-result-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.live-result-name mark {
    background: transparent;
    color: var(--primary);
    font-weight: 700;
}

.live-result-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.live-result-sub mark {
    background: transparent;
    color: var(--accent);
    font-weight: 600;
}

.live-empty,
.live-loading,
.live-prompt {
    padding: 18px 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.live-prompt { font-size: 0.88rem; }

.live-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.live-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: live-spin 0.7s linear infinite;
}

@keyframes live-spin { to { transform: rotate(360deg); } }

.live-empty strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ==========================================================================
   PRIVACY POLICY PAGE
   ========================================================================== */
.page-hero {
    background: linear-gradient(135deg, #0a3d62 0%, #0f5a8e 100%);
    color: #fff;
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
}

.page-hero .eyebrow-light {
    color: var(--gold);
    margin-bottom: 14px;
}

.page-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.policy-wrap {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.policy-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
}

.policy-card h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.policy-card p {
    font-size: 0.97rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0 0 12px;
}

.policy-card p:last-child { margin-bottom: 0; }

.policy-card ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 8px;
}

.policy-card ul li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
}

.policy-card ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 15px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.policy-card strong { color: var(--text); font-weight: 600; }

.policy-eyebrow {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.policy-lead {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.policy-lead p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.policy-note {
    background: #f0f6fc;
    border-left: 3px solid var(--primary);
    padding: 12px 16px !important;
    border-radius: 6px;
    margin-top: 12px !important;
    font-size: 0.92rem !important;
    color: var(--text) !important;
}

.policy-contact p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: var(--text-2);
}

.policy-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.policy-contact a:hover {
    text-decoration: underline;
}

.policy-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 16px 8px;
}

.policy-meta p { margin: 0; }

@media (max-width: 600px) {
    .page-hero { padding: 56px 0 44px; }
    .policy-card { padding: 22px 20px; }
}

/* Member result panel */
.member-result {
    margin-top: 22px;
    padding: 22px;
    background: linear-gradient(135deg, #e8f5ee 0%, #d4ecde 100%);
    border: 1.5px solid #4caf7a;
    border-radius: 12px;
    animation: fadeSlideIn 0.35s ease-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.member-greeting {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.member-check {
    width: 40px;
    height: 40px;
    background: #1e7e34;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.member-greeting h4 {
    margin: 0 0 4px;
    color: #1e7e34;
    font-size: 1.15rem;
    font-weight: 700;
}

.member-greeting p {
    margin: 0;
    color: #2a4434;
    font-size: 0.92rem;
    line-height: 1.5;
}

.member-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 18px;
}

.md-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.md-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a6b5b;
    font-weight: 600;
}

.md-value {
    font-size: 0.95rem;
    color: #1a2e22;
    font-weight: 500;
    word-break: break-word;
}

/* Not a member panel */
.not-member-panel {
    margin-top: 22px;
    padding: 22px;
    background: linear-gradient(135deg, #fff7e6 0%, #ffe9c2 100%);
    border: 1.5px solid #f0a020;
    border-radius: 12px;
    animation: fadeSlideIn 0.35s ease-out;
}

.not-member-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.not-member-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.not-member-info h4 {
    margin: 0 0 4px;
    color: #a05a00;
    font-size: 1.1rem;
    font-weight: 700;
}

.not-member-info p {
    margin: 0;
    color: #5a3e0a;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Divider */
.register-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.register-divider::before,
.register-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.register-divider span {
    padding: 0 14px;
}

.alt-register-actions {
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s;
}

.link-btn:hover {
    background: rgba(0, 74, 153, 0.08);
    text-decoration: underline;
}

/* Back button inside manual form */
.back-btn {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.2s, border-color 0.2s;
}

.back-btn:hover {
    background: rgba(0, 74, 153, 0.05);
    border-color: var(--primary);
}

@media (max-width: 720px) {
    .search-input-wrap {
        flex-direction: column;
    }
    .search-icon {
        display: none;
    }
    #memberSearchInput {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
    }
    #memberSearchBtn {
        padding: 12px 16px;
        width: 100%;
    }
    .member-details-grid {
        grid-template-columns: 1fr;
    }
    .member-greeting,
    .not-member-info {
        flex-direction: column;
        gap: 8px;
    }
}
