/* Doctor application only: premium cool-white clinical workspace. */
body.doctor-application-premium-page {
    --dap-ink: #071d4d;
    --dap-muted: #62708c;
    --dap-blue: #075cff;
    --dap-blue-deep: #0649da;
    --dap-line: #d8e3f3;
    --dap-pale: #f3f7fd;
    --dap-success: #09985b;
    background: #f8fbff;
    color: var(--dap-ink);
}

body.doctor-application-premium-page .main-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 92% 2%, rgba(7, 92, 255, .07), transparent 26rem),
        linear-gradient(180deg, #fff 0, #f8fbff 31rem, #f5f9fe 100%);
}

.dap-page {
    width: min(calc(100% - 48px), 1430px);
    margin: 0 auto;
    padding: 52px 0 84px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.dap-intro {
    display: grid;
    grid-template-columns: minmax(330px, .78fr) minmax(640px, 1.22fr);
    gap: 64px;
    align-items: end;
    padding: 0 10px 38px;
}

.dap-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dap-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dap-intro h1 {
    margin: 0;
    color: var(--dap-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.65rem, 4vw, 4.75rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

.dap-intro p {
    max-width: 600px;
    margin: 18px 0 0;
    color: var(--dap-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.dap-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.dap-progress li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dap-progress li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 21px;
    left: 44px;
    width: calc(100% - 44px);
    height: 1px;
    background: var(--dap-line);
    content: "";
}

.dap-progress li > span {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #c9d7ea;
    border-radius: 50%;
    background: #fff;
    color: #72809a;
    font-size: .72rem;
    font-weight: 800;
}

.dap-progress li.is-current > span {
    border-color: var(--dap-blue);
    background: var(--dap-blue);
    box-shadow: 0 9px 23px rgba(7, 92, 255, .25);
    color: #fff;
}

.dap-progress li.is-complete > span {
    border-color: #0eae6d;
    background: #e9fbf3;
    color: #087d50;
}

.dap-progress li.is-complete > span::before {
    content: "\2713";
}

.dap-progress li.is-complete > span {
    font-size: 0;
}

.dap-progress li.is-complete > span::before {
    font-size: .88rem;
}

.dap-progress li.is-complete:not(:last-child)::after {
    background: #0eae6d;
}

.dap-progress li > div {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 4px 14px 4px 0;
    background: #fff;
}

.dap-progress strong,
.dap-progress small {
    display: block;
}

.dap-progress strong {
    overflow: hidden;
    color: var(--dap-ink);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dap-progress small {
    margin-top: 3px;
    color: #8793a9;
    font-size: .7rem;
}

.dap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 28px;
    align-items: start;
}

.dap-form-card,
.dap-review-card,
.dap-trust-card {
    border: 1px solid var(--dap-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 55px rgba(13, 40, 86, .08);
}

.dap-form-card {
    overflow: hidden;
    border-radius: 24px;
}

.dap-form-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.dap-section {
    display: grid;
    grid-template-columns: 245px repeat(2, minmax(0, 1fr));
    gap: 34px;
    padding: 32px 34px;
}

.dap-section[hidden] {
    display: none !important;
}

.dap-section.is-active {
    animation: dap-panel-enter .28s ease both;
}

@keyframes dap-panel-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dap-section + .dap-section {
    border-top: 1px solid #e3ebf6;
}

.dap-section-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-content: start;
}

.dap-section-heading:focus {
    outline: 0;
    border-radius: 9px;
    box-shadow: 0 0 0 3px rgba(7, 92, 255, .14);
}

.dap-section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #edf4ff;
    color: var(--dap-blue);
    font-size: 1rem;
}

.dap-section-heading strong,
.dap-section-heading small {
    display: block;
}

.dap-section-heading strong {
    margin-top: 2px;
    color: var(--dap-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.16rem;
    font-weight: 600;
}

.dap-section-heading small {
    margin-top: 6px;
    color: var(--dap-muted);
    font-size: .77rem;
    line-height: 1.5;
}

.dap-section > .form-group,
.dap-section > .dap-photo-field {
    grid-column: 2 / -1;
}

.dap-identity,
.dap-credentials {
    grid-auto-flow: row;
}

.dap-identity .form-group:not(.dap-photo-field),
.dap-credentials .form-group {
    grid-column: auto;
    margin-bottom: 17px !important;
}

.dap-credentials .dap-section-heading {
    grid-row: 1 / span 2;
}

.dap-section-heading {
    grid-column: 1;
}

.dap-photo-field,
.dap-field-phone,
.dap-verification-notice,
.dap-consent .form-check,
.dap-submit-row {
    grid-column: 2 / -1 !important;
}

.dap-field-name,
.dap-field-license,
.dap-field-location {
    grid-column: 2 !important;
}

.dap-field-email,
.dap-field-specialty,
.dap-field-year {
    grid-column: 3 !important;
}

.dap-wizard-actions {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #e3ebf6;
}

.dap-wizard-actions--end {
    grid-template-columns: 1fr auto;
}

.dap-step-status {
    color: #71809a;
    font-size: .75rem;
    font-weight: 750;
    text-align: center;
}

.dap-wizard-next,
.dap-wizard-back {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 800;
}

.dap-wizard-next {
    border: 1px solid var(--dap-blue);
    background: linear-gradient(135deg, var(--dap-blue), var(--dap-blue-deep));
    box-shadow: 0 10px 20px rgba(7, 92, 255, .2);
    color: #fff;
}

.dap-wizard-next:hover,
.dap-wizard-next:focus {
    border-color: #0341c8;
    background: #034ddf;
    color: #fff;
}

.dap-wizard-back {
    border: 1px solid #cbd8ea;
    background: #fff;
    color: #26426e;
}

.dap-wizard-back:hover,
.dap-wizard-back:focus {
    border-color: #8aabd8;
    background: #f6f9fe;
    color: #0b58e7;
}

.dap-review-summary {
    grid-column: 2 / -1;
    padding: 20px;
    border: 1px solid #d9e5f5;
    border-radius: 14px;
    background: #f8fbff;
}

.dap-review-summary h3 {
    margin: 0 0 15px;
    color: var(--dap-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.dap-review-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
}

.dap-review-summary dl > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e1e9f4;
    border-radius: 9px;
    background: #fff;
}

.dap-review-summary dt {
    color: #748199;
    font-size: .68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dap-review-summary dd {
    overflow-wrap: anywhere;
    margin: 4px 0 0;
    color: #172d54;
    font-size: .8rem;
    font-weight: 700;
}

.dap-identity .dap-photo-field {
    margin-bottom: 24px !important;
}

.dap-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dap-form .form-control-label {
    margin: 0 0 8px;
    color: #17294e;
    font-size: .78rem;
    font-weight: 700;
}

.dap-required,
.dap-optional {
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dap-required {
    padding: 4px 8px;
    background: #fff0f2;
    color: #bc2643;
}

.dap-optional {
    padding: 3px 0;
    color: #8793a9;
}

.dap-photo-upload {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 8px;
}

.dap-photo-preview {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    overflow: hidden;
    place-items: center;
    border: 1px dashed #9cb5da;
    border-radius: 50%;
    background: #f2f7ff;
    color: var(--dap-blue);
    font-size: 1.25rem;
}

.dap-photo-preview img {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dap-photo-preview.has-image i {
    display: none;
}

.dap-photo-control {
    min-width: 0;
}

.dap-photo-control input[type="file"] {
    min-height: 48px;
    padding: 6px;
}

.dap-photo-control input[type="file"]::file-selector-button {
    height: 34px;
    margin: 0 12px 0 0;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--dap-blue);
    font-weight: 700;
}

.dap-form .form-control,
.dap-form .form-select,
.dap-form select {
    min-height: 49px;
    border: 1px solid #cdd9e9;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(14, 42, 81, .025);
    color: #102448;
    font-size: .88rem;
}

.dap-form .form-control:focus,
.dap-form .form-select:focus,
.dap-form select:focus {
    border-color: #6c9cff;
    box-shadow: 0 0 0 3px rgba(7, 92, 255, .1);
}

.dap-form .form-control::placeholder {
    color: #9aa6b8;
}

.dap-form .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.dap-form #countryCodeDropdown {
    min-width: 110px;
    border: 1px solid #cdd9e9;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f5f8fd;
    color: #162c53;
}

.dap-form #countryCodeDropdown.btn-outline-danger {
    border-color: #dc3545;
    color: #a82539;
}

.dap-form #countryCodeDropdown.btn-outline-success {
    border-color: #78bd9c;
    color: #08784a;
}

.dap-form #countryList {
    max-height: 280px;
    min-width: 270px;
    overflow-y: auto;
    border: 1px solid var(--dap-line);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 43, 85, .14);
}

.dap-form .form-text,
.dap-form .text-muted {
    display: block;
    margin-top: 6px;
    color: #7b879c !important;
    font-size: .72rem;
    line-height: 1.45;
}

.dap-form .invalid-feedback,
.dap-form #country-code-error {
    margin-top: 6px;
    color: #be2847;
    font-size: .73rem;
}

.dap-consent {
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.dap-verification-notice {
    grid-column: 2 / -1;
    margin: 0 0 20px !important;
    padding: 17px 18px;
    border: 1px solid #bdd3f7;
    border-radius: 12px;
    background: #f1f6ff;
    color: #24406e;
}

.dap-verification-notice h5 {
    margin: 0 0 6px;
    color: var(--dap-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .98rem;
}

.dap-verification-notice p {
    margin: 0;
    font-size: .78rem;
    line-height: 1.55;
}

.dap-consent .form-check {
    grid-column: 2 / -1;
    min-height: 24px;
    margin: 0 0 22px !important;
    padding: 0 0 0 30px;
}

.dap-consent .form-check-input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 -30px;
    border-color: #9db0cc;
}

.dap-consent .form-check-input:checked {
    border-color: var(--dap-blue);
    background-color: var(--dap-blue);
}

.dap-consent .form-check-label {
    color: #53627c;
    font-size: .78rem;
    line-height: 1.55;
}

.dap-consent a {
    color: var(--dap-blue);
    font-weight: 700;
    text-decoration: none;
}

.dap-submit-row {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dap-submit-row p {
    max-width: 350px;
    margin: 0;
    color: #738099;
    font-size: .72rem;
    line-height: 1.5;
}

.dap-submit-copy {
    display: grid;
    gap: 5px;
}

.dap-submit-copy .dap-step-status {
    text-align: left;
}

.dap-submit-row p i {
    margin-right: 6px;
    color: var(--dap-success);
}

.dap-submit {
    min-width: 240px;
    min-height: 49px;
    border: 1px solid var(--dap-blue);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dap-blue), var(--dap-blue-deep));
    box-shadow: 0 12px 24px rgba(7, 92, 255, .22);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}

.dap-submit:hover,
.dap-submit:focus {
    border-color: #0341c8;
    background: #034ddf;
    color: #fff;
    transform: translateY(-1px);
}

.dap-review-rail {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.dap-review-card,
.dap-trust-card {
    border-radius: 18px;
    padding: 23px;
}

.dap-review-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 13px;
    background: var(--dap-blue);
    box-shadow: 0 10px 22px rgba(7, 92, 255, .22);
    color: #fff;
}

.dap-review-card h2,
.dap-trust-card h2 {
    margin: 0;
    color: var(--dap-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.13rem;
}

.dap-review-card > p {
    margin: 9px 0 20px;
    color: var(--dap-muted);
    font-size: .76rem;
    line-height: 1.55;
}

.dap-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dap-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 20px;
}

.dap-timeline li:not(:last-child)::after {
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 6px;
    width: 1px;
    background: #d7e2f2;
    content: "";
}

.dap-timeline li > span {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 2px;
    border: 3px solid #fff;
    border-radius: 50%;
    outline: 1px solid #b8c7dc;
    background: #d7e1f0;
}

.dap-timeline li.is-active > span {
    outline-color: var(--dap-success);
    background: var(--dap-success);
}

.dap-timeline strong,
.dap-timeline small {
    display: block;
}

.dap-timeline strong {
    color: #1a2e52;
    font-size: .77rem;
}

.dap-timeline small {
    margin-top: 3px;
    color: #8793a8;
    font-size: .68rem;
}

.dap-review-time {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 3px;
    padding: 13px;
    border-radius: 11px;
    background: #eef5ff;
    color: var(--dap-blue);
}

.dap-review-time strong,
.dap-review-time small {
    display: block;
}

.dap-review-time strong {
    color: #17315f;
    font-size: .74rem;
}

.dap-review-time small {
    margin-top: 2px;
    color: #7b89a1;
    font-size: .65rem;
}

.dap-trust-card ul {
    display: grid;
    gap: 12px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.dap-trust-card li {
    display: flex;
    gap: 9px;
    color: #596881;
    font-size: .73rem;
    line-height: 1.4;
}

.dap-trust-card li i {
    display: grid;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: #e8f8f0;
    color: var(--dap-success);
    font-size: .58rem;
}

body.doctor-application-premium-page .modal-content {
    border: 1px solid var(--dap-line);
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(9, 31, 69, .18);
}

@media (max-width: 1120px) {
    .dap-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dap-layout {
        grid-template-columns: 1fr;
    }

    .dap-review-rail {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .dap-page {
        width: min(calc(100% - 28px), 720px);
        padding-top: 34px;
    }

    .dap-progress li > div {
        display: block;
        padding-right: 6px;
    }

    .dap-progress small {
        display: none;
    }

    .dap-progress strong {
        font-size: .7rem;
    }

    .dap-progress li:not(:last-child)::after {
        left: 43px;
        width: calc(100% - 43px);
    }

    .dap-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 27px 24px;
    }

    .dap-section-heading {
        grid-column: 1;
    }

    .dap-wizard-actions,
    .dap-review-summary {
        grid-column: 1 !important;
    }

    .dap-review-summary dl {
        grid-template-columns: 1fr;
    }

    .dap-section > .form-group,
    .dap-section > .dap-photo-field,
    .dap-identity .form-group,
    .dap-credentials .form-group,
    .dap-verification-notice,
    .dap-consent .form-check,
    .dap-submit-row {
        grid-column: 1;
    }

    .dap-photo-field,
    .dap-field-name,
    .dap-field-email,
    .dap-field-phone,
    .dap-field-license,
    .dap-field-specialty,
    .dap-field-location,
    .dap-field-year,
    .dap-verification-notice,
    .dap-consent .form-check,
    .dap-submit-row {
        grid-column: 1 !important;
    }

    .dap-credentials .dap-section-heading {
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .dap-page {
        width: calc(100% - 20px);
        padding: 26px 0 56px;
    }

    .dap-intro {
        padding: 0 4px 27px;
    }

    .dap-intro h1 {
        font-size: 2.55rem;
    }

    .dap-progress {
        width: 100%;
        gap: 8px;
    }

    .dap-progress li {
        gap: 7px;
    }

    .dap-progress li > span {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .dap-progress li:not(:last-child)::after {
        top: 17px;
        left: 34px;
        width: calc(100% - 34px);
    }

    .dap-progress li > div {
        display: none;
    }

    .dap-form-card {
        border-radius: 18px;
    }

    .dap-section {
        padding: 24px 18px;
    }

    .dap-photo-upload {
        grid-template-columns: 1fr;
    }

    .dap-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .dap-wizard-actions,
    .dap-wizard-actions--end {
        grid-template-columns: 1fr;
    }

    .dap-step-status {
        grid-row: 1;
    }

    .dap-wizard-next,
    .dap-wizard-back {
        width: 100%;
    }

    .dap-submit {
        width: 100%;
        min-width: 0;
    }

    .dap-review-rail {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dap-section.is-active {
        animation: none;
    }
}
