/* ===========================
   doctor_type.css  — updated
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #f0f4f8;
    --surface:      #ffffff;
    --border:       #e2eaec;
    --teal:         #0fbf8f;
    --teal-dark:    #0aa87d;
    --teal-light:   #e6faf5;
    --navy:         #1a2342;
    --navy-mid:     #2e3a5e;
    --muted:        #8899a8;
    --muted-light:  #b0bec5;
    --font-display: 'Sora', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --shadow:       0 8px 40px rgba(26,35,66,0.07);
    --transition:   all 0.22s cubic-bezier(0.4,0,0.2,1);
    --radius-card:  22px;
    --radius-btn:   14px;
}

html, body { height: 100%; }

body {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 420px; height: 420px;
    background: radial-gradient(circle, #0fbf8f33 0%, transparent 70%);
    top: -120px; right: -100px;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 320px; height: 320px;
    background: radial-gradient(circle, #1a234222 0%, transparent 70%);
    bottom: -80px; left: -80px;
    pointer-events: none;
}

/* Back button */
.back-btn {
    position: fixed;
    top: 20px; left: 20px;
    width: 40px; height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-mid);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(26,35,66,0.08);
    transition: var(--transition);
    z-index: 10;
}
.back-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateX(-2px);
}

/* Card */
.card {
    position: relative; z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 40px 32px 36px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: auto;
    animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Logo */
.logo-wrap {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 24px;
    animation: fadeUp 0.65s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.logo-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6faf5, #d0f5ea);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(15,191,143,0.15);
    overflow: hidden;
}

.logo-icon img {
    width: 50px; height: 50px;
    object-fit: contain;
    display: block;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--navy);
}
.logo-name span { color: var(--teal); }

/* Section label */
.section-label {
    font-family: var(--font-display);
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 18px;
    animation: fadeUp 0.65s 0.18s cubic-bezier(0.22,1,0.36,1) both;
}

/* Role buttons */
.role-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 15px 18px;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--navy-mid);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    cursor: pointer;
    animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

.role-btn:nth-child(1) { animation-delay: 0.22s; }
.role-btn:nth-child(2) { animation-delay: 0.30s; }
.role-btn:last-of-type { margin-bottom: 0; }

.role-btn:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(15,191,143,0.12);
}

.role-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 4px 18px rgba(15,191,143,0.25);
}
.role-btn.active:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

/* Button internals */
.btn-left { display: flex; align-items: center; gap: 14px; }

.btn-emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }

.btn-info { display: flex; flex-direction: column; gap: 3px; }

.btn-title {
    font-family: var(--font-display);
    font-size: 0.92rem; font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--navy);
}

.role-btn.active .btn-title,
.role-btn.active .btn-sub { color: #fff; }

.btn-sub {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 400;
}

.btn-arrow {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(26,35,66,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem;
    color: var(--navy-mid);
    flex-shrink: 0;
    transition: var(--transition);
}
.role-btn.active .btn-arrow { background: rgba(255,255,255,0.25); color: #fff; }
.role-btn:hover .btn-arrow  { transform: translateX(3px); }

/* Footer */
.footer-tag {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--muted-light);
}

/* Mobile */
@media (max-width: 480px) {
    .card { padding: 32px 20px 28px; border-radius: 18px; }
    .logo-icon { width: 58px; height: 58px; }
    .logo-icon img { width: 44px; height: 44px; }
    .logo-name { font-size: 1.3rem; }
    .role-btn { padding: 14px 14px; font-size: 0.88rem; }
    .btn-arrow { width: 26px; height: 26px; font-size: 0.75rem; }
}