/*!
 * doctorregister.css — redesigned /register-as-doctor page
 * Same conventions as the other rebuilt pages: `.rg-` prefix, teal/navy tokens
 * on `.rg-section`, and every icon rule setting BOTH color and stroke with
 * !important so the theme never greys out the glyphs.
 */

.rg-section {
    --rg-teal: var(--site-base, #09a9b7);
    --rg-teal-dark: var(--site-base-dark, #087e8b);
    --rg-navy: var(--site-secondary, #0d1c51);
    --rg-text: #24355e;
    --rg-muted: #6b7897;
    --rg-line: #dfeaf0;
    --rg-bg: var(--site-base-bg, #f5fbfd);
    --rg-soft: var(--site-base-tint, #eaf9fb);
    --rg-amber: #f5a623;
    --rg-green: #1f9254;
    --rg-radius: 16px;
    --rg-shadow: 0 8px 26px rgba(20, 70, 100, .08);
}

.rg-section h1, .rg-section h2, .rg-section h3, .rg-section h4, .rg-section p { margin: 0; }
.rg-section a { text-decoration: none; }

.rg-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: var(--bs-gutter-x, 12px);
    padding-left: var(--bs-gutter-x, 12px);
}
@media (min-width: 576px)  { .rg-wrap { max-width: 540px; } }
@media (min-width: 768px)  { .rg-wrap { max-width: 720px; } }
@media (min-width: 992px)  { .rg-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .rg-wrap { max-width: 1140px; } }
@media (min-width: 1500px) { .rg-wrap { max-width: 1440px; } }

/* ------------------------------------------------------------- breadcrumb */
.rg-crumb { padding: 10px 0; background: #fff; }
.rg-crumb ol {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px;
}
.rg-crumb li { color: var(--rg-muted); }
.rg-crumb li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Pro";
    font-weight: 900; margin-right: 8px; color: #b6c2d6; font-size: 12px;
}
.rg-crumb a { color: var(--rg-teal-dark) !important; }
.rg-crumb a:hover { text-decoration: underline; }
.rg-crumb [aria-current] { color: var(--rg-muted); }

/* ================================================================== hero */
.rg-hero {
    position: relative;
    background: linear-gradient(105deg, #f7fcfd 0%, #eaf7fa 55%, #dff1f5 100%);
    overflow: hidden;
    padding: 26px 0 30px;
}
.rg-hero::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 340px; height: 340px; border-radius: 50%;
    background: color-mix(in srgb, var(--site-base) 7%, transparent);
}
.rg-hero__grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 26px; align-items: center;
}
@media (max-width: 991px) { .rg-hero__grid { grid-template-columns: 1fr; } }

.rg-hero__title {
    font-size: 46px; line-height: 1.16; font-weight: 800;
    letter-spacing: -1px; color: var(--rg-navy);
}
.rg-hero__title em { font-style: normal; color: var(--rg-teal); }
@media (max-width: 767px) { .rg-hero__title { font-size: 33px; } }
@media (max-width: 479px) { .rg-hero__title { font-size: 27.5px; } }

.rg-hero__sub {
    margin-top: 13px; max-width: 560px;
    font-size: 16px; line-height: 1.65; color: var(--rg-muted);
}

.rg-pills {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-top: 22px;
}
@media (max-width: 767px) { .rg-pills { grid-template-columns: repeat(2, 1fr); } }

.rg-pill { display: flex; align-items: flex-start; gap: 10px; }
.rg-pill__ico {
    flex: 0 0 auto;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--rg-teal); color: #fff !important;
}
.rg-pill__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff !important; stroke: #fff !important;
}
.rg-pill b { display: block; font-size: 14px; font-weight: 700; color: var(--rg-text); line-height: 1.3; }
.rg-pill span { display: block; font-size: 12.5px; color: var(--rg-muted); line-height: 1.45; margin-top: 2px; }

/* hero art */
.rg-hero__art { position: relative; }
.rg-hero__photo {
    width: 100%; border-radius: 18px; display: block;
    box-shadow: 0 16px 44px rgba(20, 70, 100, .16);
}
.rg-hero__badge {
    position: absolute; top: 14px; right: -6px;
    display: flex; align-items: center; gap: 11px;
    padding: 12px 15px;
    background: #fff; border-radius: 13px;
    box-shadow: 0 10px 30px rgba(20, 70, 100, .18);
}
.rg-hero__badge svg {
    width: 26px; height: 26px; flex: 0 0 auto;
    color: var(--rg-teal) !important; stroke: var(--rg-teal) !important;
}
.rg-hero__badge b { display: block; font-size: 14px; font-weight: 700; color: var(--rg-navy); }
.rg-hero__badge span { display: block; font-size: 12px; color: var(--rg-muted); margin-top: 1px; }
@media (max-width: 991px) { .rg-hero__badge { right: 10px; } }
@media (max-width: 479px) { .rg-hero__badge { display: none; } }

/* ================================================================= body */
.rg-body { padding: 26px 0 36px; }

.rg-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 22px; align-items: start;
}
@media (max-width: 991px) { .rg-layout { grid-template-columns: 1fr; } }

.rg-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 991px) { .rg-side { position: static; } }

/* --------------------------------------------------------------- tabs */
.rg-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    padding: 4px; border-radius: 12px;
    background: #eef2f6;
}
.rg-tab {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px;
    border: 0; border-radius: 9px; background: transparent;
    font-size: 13.5px; font-weight: 600; color: var(--rg-muted);
    cursor: pointer; transition: all .2s ease; text-align: center;
}
.rg-tab svg {
    width: 16px; height: 16px; flex: 0 0 auto;
    color: #9aa6bd !important; stroke: #9aa6bd !important;
}
.rg-tab.is-on {
    background: var(--rg-teal); color: #fff !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--site-base) 30%, transparent);
}
.rg-tab.is-on svg { color: #fff !important; stroke: #fff !important; }
.rg-tab:focus-visible {
    outline: 2px solid var(--rg-teal);
    outline-offset: 2px;
}

/* the two registration forms share this page, one per tab */
.rg-panel.is-hidden { display: none !important; }

/* ---------------------------------------------------------- why panel */
.rg-why {
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-radius);
    box-shadow: var(--rg-shadow);
    padding: 17px 18px;
}
.rg-why__title { font-size: 17px; font-weight: 700; color: var(--rg-navy); }
.rg-why__sub { font-size: 13px; line-height: 1.55; color: var(--rg-muted); margin-top: 6px; }

.rg-why__list { display: flex; flex-direction: column; gap: 15px; margin-top: 16px; }
.rg-why__item { display: flex; align-items: flex-start; gap: 11px; }
.rg-why__ico {
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; background: var(--rg-soft);
}
.rg-why__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--rg-teal-dark) !important; stroke: var(--rg-teal-dark) !important;
}
.rg-why__t { font-size: 14px; font-weight: 700; color: var(--rg-text); line-height: 1.3; }
.rg-why__d { font-size: 12.5px; color: var(--rg-muted); line-height: 1.5; margin-top: 3px; }

/* --------------------------------------------------------------- help */
.rg-help {
    display: flex; align-items: center; gap: 13px;
    background: linear-gradient(120deg, #f6fcfd, #e4f5f8);
    border: 1px solid #d5eef3;
    border-radius: var(--rg-radius);
    padding: 15px 16px;
}
.rg-help__img {
    flex: 0 0 auto;
    width: 62px; height: 62px; border-radius: 12px;
    overflow: hidden; background: #fff;
}
.rg-help__img img { width: 100%; height: 100%; object-fit: cover; }
.rg-help__t { font-size: 15.5px; font-weight: 700; color: var(--rg-navy); }
.rg-help__d { font-size: 12.5px; line-height: 1.5; color: var(--rg-muted); margin-top: 3px; }
.rg-help__cta { margin-top: 10px; }

/* ---------------------------------------------------------------- btn */
.rg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 17px;
    border: 1px solid var(--rg-teal); border-radius: 9px;
    background: var(--rg-teal); color: #fff !important;
    font-size: 14px; font-weight: 600; line-height: 1.2;
    cursor: pointer; transition: all .2s ease; text-align: center;
}
.rg-btn:hover { background: var(--rg-teal-dark); border-color: var(--rg-teal-dark); color: #fff !important; }
.rg-btn svg { width: 15px; height: 15px; color: #fff !important; stroke: #fff !important; }
.rg-btn--block { display: flex; width: 100%; }
.rg-btn--outline { background: #fff; color: var(--rg-teal-dark) !important; border-color: var(--site-base-tint-4, #b9e3e9); }
.rg-btn--outline:hover { background: var(--rg-soft); color: var(--rg-teal-dark) !important; }
.rg-btn--lg { padding: 13px 24px; font-size: 15.5px; }
.rg-btn--sm { padding: 7px 13px; font-size: 13px; }

/* =============================================================== the form */
.rg-card {
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-radius);
    box-shadow: var(--rg-shadow);
}

.rg-card__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--rg-line);
}
.rg-card__title { font-size: 24px; font-weight: 700; color: var(--rg-navy); letter-spacing: -.3px; }
.rg-card__sub { font-size: 13.5px; color: var(--rg-muted); margin-top: 4px; }
.rg-card__login { font-size: 13.5px; color: var(--rg-muted); white-space: nowrap; }
.rg-card__login a { color: var(--rg-teal-dark) !important; font-weight: 700; }
.rg-card__login a:hover { text-decoration: underline; }

.rg-card__body { padding: 18px 20px 20px; }

/* step */
.rg-step { margin-bottom: 22px; }
.rg-step:last-child { margin-bottom: 0; }
.rg-step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rg-step__n {
    flex: 0 0 auto;
    width: 27px; height: 27px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--rg-teal); color: #fff !important;
    font-size: 13.5px; font-weight: 700;
}
.rg-step__t { font-size: 16px; font-weight: 700; color: var(--rg-navy); }
.rg-step__d { font-size: 12.5px; color: var(--rg-muted); margin-top: 2px; }

/* grid */
.rg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rg-row--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) { .rg-row, .rg-row--2 { grid-template-columns: 1fr; } }
.rg-full { grid-column: 1 / -1; }

.rg-lab { display: block; }
.rg-lab > span {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--rg-text); margin-bottom: 5px;
}
.rg-req { color: #e2564f; }

.rg-in {
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--rg-line); border-radius: 9px;
    background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.rg-in:focus-within { border-color: var(--rg-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-base) 12%, transparent); }
.rg-in.is-bad { border-color: #e2564f; }
.rg-in > svg {
    width: 17px; height: 17px; flex: 0 0 auto;
    color: var(--site-base-dark, #087e8b) !important; stroke: var(--site-base-dark, #087e8b) !important;
}
.rg-in input, .rg-in select, .rg-in textarea {
    flex: 1 1 auto; min-width: 0;
    border: 0; outline: 0; background: transparent;
    padding: 10px 0; font-size: 14px; color: var(--rg-text); font-family: inherit;
}
.rg-in select { appearance: none; cursor: pointer; }
.rg-in textarea { padding: 10px 0; resize: vertical; min-height: 58px; }

.rg-cc {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 5px;
    padding: 0 11px; align-self: stretch;
    border-right: 1px solid var(--rg-line);
    background: var(--rg-bg);
    font-size: 13.5px; font-weight: 600; color: var(--rg-text);
}
.rg-in--pw { padding-right: 4px; }
.rg-eye {
    flex: 0 0 auto;
    width: 32px; height: 32px; border: 0; background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 7px;
}
.rg-eye:hover { background: var(--rg-soft); }
.rg-eye svg {
    width: 16px; height: 16px;
    color: #9aa6bd !important; stroke: #9aa6bd !important;
}

/* validation message */
.rg-msg {
    display: flex; align-items: flex-start; gap: 5px;
    margin-top: 5px;
    font-size: 12.5px; color: #e2564f !important;
}
.rg-msg svg {
    width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px;
    color: #e2564f !important; stroke: #e2564f !important;
}

/* alert */
.rg-alert {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 12px 14px; margin-bottom: 16px;
    border: 1px solid #f6c9c6; border-radius: 10px;
    background: #fdf3f2;
    font-size: 13.5px; color: #a63c36; line-height: 1.55;
}
.rg-alert svg {
    width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px;
    color: #e2564f !important; stroke: #e2564f !important;
}

/* radio pills (online consultation) */
.rg-radios { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-top: 8px; }
.rg-radio {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; color: var(--rg-text); cursor: pointer;
}
.rg-radio input { width: 16px; height: 16px; accent-color: var(--rg-teal); cursor: pointer; }

/* checkbox pills (consultation types) */
.rg-checks { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.rg-check {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--rg-line); border-radius: 8px;
    background: #fff; cursor: pointer;
    font-size: 13.5px; font-weight: 600; color: var(--rg-text);
    transition: all .18s ease; user-select: none;
}
.rg-check input { width: 15px; height: 15px; accent-color: var(--rg-teal); cursor: pointer; }
.rg-check:hover { border-color: var(--site-base-tint-4, #b9e3e9); }
.rg-check.is-on { border-color: var(--rg-teal); background: var(--rg-soft); color: var(--rg-teal-dark) !important; }

/* multi-select for available days */
.rg-days { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.rg-day {
    display: inline-flex; align-items: center;
    padding: 8px 13px;
    border: 1px solid var(--rg-line); border-radius: 8px;
    background: #fff; cursor: pointer;
    font-size: 13.5px; font-weight: 600; color: var(--rg-text);
    transition: all .18s ease; user-select: none;
}
.rg-day:hover { border-color: var(--site-base-tint-4, #b9e3e9); }
.rg-day.is-on { border-color: var(--rg-teal); background: var(--rg-soft); color: var(--rg-teal-dark) !important; }

/* ------------------------------------------------------------- uploads */
.rg-uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 767px) { .rg-uploads { grid-template-columns: 1fr; } }

.rg-upload { text-align: center; }
.rg-upload__top { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; text-align: left; }
.rg-upload__ico {
    flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; background: var(--rg-soft);
}
.rg-upload__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--rg-teal-dark) !important; stroke: var(--rg-teal-dark) !important;
}
.rg-upload__t { font-size: 13px; font-weight: 600; color: var(--rg-text); line-height: 1.3; }
.rg-upload__d { font-size: 11.5px; color: var(--rg-muted); margin-top: 2px; }

/* the styled file input */
.rg-file { position: relative; display: block; }
.rg-file input[type="file"] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.rg-file__ui {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 12px;
    border: 1px dashed var(--rg-teal); border-radius: 9px;
    background: var(--rg-bg);
    font-size: 13px; font-weight: 600; color: var(--rg-teal-dark) !important;
    transition: all .18s ease; pointer-events: none;
}
.rg-file:hover .rg-file__ui { background: var(--rg-soft); }
.rg-file.is-set .rg-file__ui {
    border-style: solid; background: #e7f7ec; border-color: #bfe5cd; color: var(--rg-green) !important;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rg-file__size {
    display: block; font-size: 11.5px; font-weight: 500;
    color: var(--rg-muted); margin-top: 5px;
}

/* terms + submit */
.rg-terms {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 20px; padding: 13px 15px;
    border: 1px solid var(--rg-line); border-radius: 10px;
    background: var(--rg-bg);
    font-size: 13.5px; color: var(--rg-text); line-height: 1.55; cursor: pointer;
}
.rg-terms input { flex: 0 0 auto; margin-top: 2px; width: 15px; height: 15px; accent-color: var(--rg-teal); }
.rg-terms a { color: var(--rg-teal-dark) !important; text-decoration: underline; }

.rg-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

/* ============================================================ success */
.rg-done { max-width: 760px; margin: 0 auto; padding: 40px 22px 46px; }
.rg-done__card {
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: 20px;
    box-shadow: var(--rg-shadow);
    padding: 36px 28px; text-align: center;
}
.rg-done__tick {
    width: 78px; height: 78px; margin: 0 auto 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; background: #e7f7ec;
}
.rg-done__tick svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 38px; height: 38px;
    color: var(--rg-green) !important; stroke: var(--rg-green) !important;
}
.rg-done__title { font-size: 28.5px; font-weight: 700; color: var(--rg-navy); letter-spacing: -.3px; }
.rg-done__sub { font-size: 15px; line-height: 1.7; color: var(--rg-muted); margin-top: 11px; }
.rg-done__ref {
    display: inline-block; margin-top: 20px; padding: 12px 24px;
    border: 1px dashed var(--rg-teal); border-radius: 12px; background: var(--rg-bg);
}
.rg-done__ref span { display: block; font-size: 12.5px; color: var(--rg-muted); }
.rg-done__ref b { display: block; font-size: 22px; font-weight: 800; color: var(--rg-navy); letter-spacing: 1px; margin-top: 3px; }
.rg-done__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ========================================================== responsive */
@media (max-width: 767px) {
    .rg-hero { padding: 20px 0 24px; }
    .rg-card__head { padding: 16px 16px 12px; }
    .rg-card__body { padding: 16px 16px 18px; }
    .rg-card__title { font-size: 21px; }
    .rg-why, .rg-help { padding: 14px 15px; }
    .rg-done__card { padding: 26px 18px; }
    .rg-done__title { font-size: 23px; }
    .rg-actions .rg-btn { width: 100%; }
}


.rg-lab > .rg-in,
.rg-lab > .rg-phone {
    display: flex;
    align-items: center;
}
/* ---------------------------------------------------------------------------
 * Form control wrappers must stay flex rows.
 *
 * `.xx-lab > span { display: block }` (used for the field label text) also
 * matches the `.xx-in` wrapper, because that wrapper is a direct span child of
 * the label. Its specificity (0,1,1) beat `.xx-in` (0,1,0), so the wrapper
 * collapsed to a block and the icon was pushed onto its own line above the
 * input. Re-declaring the wrapper as `.xx-lab > .xx-in` (0,2,0) wins and puts
 * the icon, the control and the optional trailing button on one line again.
 * --------------------------------------------------------------------------- */