:root {
    --cc-navy: #073a79;
    --cc-navy-deep: #052b60;
    --cc-blue: #0b68d8;
    --cc-blue-bright: #2d8cf0;
    --cc-sky: #eaf5ff;
    --cc-sky-strong: #d9ecff;
    --cc-ink: #0b2b55;
    --cc-muted: #60758f;
    --cc-line: #dbe6f2;
    --cc-surface: #ffffff;
    --cc-bg: #edf5fc;
    --cc-success: #16835a;
    --cc-danger: #c73b4d;
    --cc-shadow: 0 18px 48px rgba(23, 70, 116, .12);
    --cc-shadow-soft: 0 8px 24px rgba(23, 70, 116, .09);
    --cc-radius-xl: 26px;
    --cc-radius-lg: 18px;
    --cc-radius-md: 13px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.cc-booking-page {
    min-height: 100vh;
    margin: 0;
    color: var(--cc-ink);
    background:
        radial-gradient(circle at 6% 3%, rgba(86, 159, 228, .20), transparent 24rem),
        radial-gradient(circle at 94% 18%, rgba(111, 183, 246, .16), transparent 27rem),
        linear-gradient(180deg, #f5faff 0%, var(--cc-bg) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

[ng-cloak] { display: none !important; }

.cc-app-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 16px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--cc-radius-xl);
    background: rgba(255, 255, 255, .80);
    box-shadow: var(--cc-shadow);
    backdrop-filter: blur(16px);
}

.cc-app-topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 40px;
    border-bottom: 1px solid rgba(210, 226, 240, .82);
    background: rgba(255, 255, 255, .88);
}

.cc-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--cc-navy);
    text-decoration: none !important;
}

.cc-brand img {
    width: 205px;
    max-width: 48vw;
    height: auto;
}

.cc-brand-label {
    padding-left: 14px;
    border-left: 1px solid var(--cc-line);
    color: var(--cc-muted);
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cc-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--cc-navy);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cc-top-link:hover,
.cc-top-link:focus {
    color: var(--cc-blue);
    background: var(--cc-sky);
    transform: translateY(-1px);
}

.cc-hero {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    padding: 36px 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 42%, rgba(62, 143, 228, .11) 0 75px, transparent 76px),
        radial-gradient(circle at 88% 70%, rgba(62, 143, 228, .09) 0 94px, transparent 95px),
        radial-gradient(circle at 75% 90%, rgba(62, 143, 228, .07) 0 105px, transparent 106px),
        linear-gradient(110deg, #fbfdff 0%, #eef7ff 100%);
}

.cc-hero-copy { position: relative; z-index: 2; max-width: 760px; }

.cc-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #4f78a9;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.cc-hero h1 {
    margin: 0;
    color: var(--cc-navy);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.cc-hero p {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--cc-ink);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.cc-hero-art {
    position: absolute;
    right: 7%;
    top: 50%;
    width: 130px;
    height: 130px;
    transform: translateY(-50%);
}

.cc-calendar-icon {
    position: absolute;
    inset: 17px 15px 13px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    font-size: 3.2rem;
    background: linear-gradient(145deg, #8bc3fa, #1671d8);
    box-shadow: 0 20px 34px rgba(22, 113, 216, .28);
}

.cc-calendar-icon::before,
.cc-calendar-icon::after {
    content: "";
    position: absolute;
    top: -10px;
    width: 9px;
    height: 24px;
    border: 3px solid #e8f5ff;
    border-radius: 9px;
    background: #4d9eea;
}

.cc-calendar-icon::before { left: 24px; }
.cc-calendar-icon::after { right: 24px; }

.cc-plus-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 5px solid #eef7ff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #79bafa, #1c71d4);
    box-shadow: 0 12px 24px rgba(11, 104, 216, .25);
    font-size: 1.5rem;
}

.cc-main { padding: 0 40px 40px; }

.cc-card {
    border: 1px solid rgba(214, 228, 241, .92);
    border-radius: var(--cc-radius-lg);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--cc-shadow-soft);
}

.cc-filter-card {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    padding: 24px;
}

.cc-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(175px, 1fr) minmax(190px, 1.1fr) auto auto;
    gap: 18px;
    align-items: end;
}

.cc-field { min-width: 0; }

.cc-field label,
.cc-field-label {
    display: block;
    margin: 0 0 7px;
    color: var(--cc-ink);
    font-size: .88rem;
    font-weight: 700;
}

.cc-control-wrap { position: relative; }
.cc-control-wrap > .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #6380a0;
    pointer-events: none;
}

.cc-booking-page .form-control,
.cc-booking-page input.form-control,
.cc-booking-page select.form-control,
.cc-booking-page textarea.form-control {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cfddeb;
    border-radius: 10px;
    color: var(--cc-ink);
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(29, 71, 111, .04);
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cc-booking-page .cc-control-wrap .form-control { padding-left: 42px; }

.cc-booking-page textarea.form-control {
    min-height: 96px;
    height: auto;
    padding-top: 13px;
    resize: vertical;
}

.cc-booking-page .form-control:focus {
    outline: none;
    border-color: #62a7ee;
    box-shadow: 0 0 0 4px rgba(30, 126, 225, .12);
}

.cc-booking-page .form-control::placeholder { color: #8a9bb0; }

.cc-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.cc-btn:hover:not(:disabled),
.cc-btn:focus:not(:disabled) { transform: translateY(-2px); }

.cc-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #0877e7, #0758bc);
    box-shadow: 0 10px 20px rgba(7, 104, 213, .24);
}

.cc-btn-primary:hover:not(:disabled),
.cc-btn-primary:focus:not(:disabled) { box-shadow: 0 14px 26px rgba(7, 104, 213, .30); }

.cc-btn-outline {
    color: var(--cc-blue) !important;
    border-color: #94c5f6;
    background: #fff;
}

.cc-btn-outline:hover,
.cc-btn-outline:focus { color: var(--cc-navy) !important; background: var(--cc-sky); }

.cc-btn-soft {
    color: var(--cc-blue) !important;
    border-color: #c5e1fb;
    background: #edf7ff;
}

.cc-btn-danger-soft {
    color: var(--cc-danger) !important;
    border-color: #f0cad0;
    background: #fff7f8;
}

.cc-btn-block { width: 100%; }
.cc-btn:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

.cc-filter-note {
    margin: 11px 2px 0;
    color: var(--cc-muted);
    font-size: .78rem;
    text-align: right;
}

.cc-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .95fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.cc-content-grid.cc-catalog-grid { grid-template-columns: 1fr; }

.cc-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cc-section-title-wrap { display: flex; align-items: center; gap: 12px; }

.cc-section-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--cc-blue);
    background: var(--cc-sky);
    font-size: 1.2rem;
}

.cc-section-head h2 {
    margin: 0;
    color: var(--cc-navy);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.015em;
}

.cc-section-head p { margin: 3px 0 0; color: var(--cc-muted); font-size: .84rem; }

.cc-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
}

.cc-page-button {
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid #d1dfed;
    border-radius: 8px;
    color: #2d6eb1;
    background: #fff;
    box-shadow: 0 3px 9px rgba(20, 66, 111, .05);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.cc-page-button:hover:not(:disabled),
.cc-page-button:focus:not(:disabled),
.cc-page-button.is-active {
    color: #fff;
    border-color: var(--cc-blue);
    background: linear-gradient(135deg, #1882ea, #075bbd);
    box-shadow: 0 8px 16px rgba(7, 104, 213, .21);
}

.cc-page-button:disabled { opacity: .34; cursor: not-allowed; }

.cc-exam-list { overflow: hidden; }

.cc-exam-row { border-bottom: 1px solid #e0e9f2; }
.cc-exam-row:last-child { border-bottom: 0; }

.cc-exam-main {
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 10px 14px;
    transition: background .18s ease;
}

.cc-exam-row:hover .cc-exam-main,
.cc-exam-row.is-open .cc-exam-main { background: linear-gradient(90deg, #f7fbff, #eaf5ff); }

.cc-expand-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #0872d9;
    background: #dceeff;
    font-size: .9rem;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.cc-exam-row.is-open .cc-expand-button {
    color: #fff;
    background: linear-gradient(145deg, #36b6d5, #1e8ecc);
    transform: rotate(180deg);
}

.cc-exam-name {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--cc-navy);
    font-size: .98rem;
    font-weight: 750;
}

.cc-exam-detail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 12px 12px;
    padding: 16px 20px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(100deg, #f5f9fd, #eef5fb);
}

.cc-detail-item { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; }
.cc-detail-item .fa { color: var(--cc-blue); font-size: 1.25rem; text-align: center; }
.cc-detail-label { display: block; color: var(--cc-muted); font-size: .77rem; }
.cc-detail-value { display: block; color: var(--cc-ink); font-size: .84rem; font-weight: 700; }

.cc-empty-state {
    padding: 42px 24px;
    text-align: center;
}

.cc-empty-state .fa {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: var(--cc-blue);
    background: var(--cc-sky);
    font-size: 1.35rem;
}

.cc-empty-state h2 { margin: 0 0 7px; color: var(--cc-navy); font-size: 1.2rem; }
.cc-empty-state p { margin: 0 0 20px; color: var(--cc-muted); }

.cc-summary-card,
.cc-form-card,
.cc-info-card { padding: 24px; }

.cc-selected-list { display: grid; gap: 10px; }

.cc-selected-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: #fbfdff;
}

.cc-selected-name { margin: 0 0 8px; color: var(--cc-navy); font-size: .94rem; font-weight: 750; }

.cc-ssn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cc-muted);
    font-size: .78rem;
    cursor: pointer;
}

.cc-ssn-toggle input,
.cc-consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--cc-blue);
}

.cc-delete-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #f0ccd2;
    border-radius: 10px;
    color: var(--cc-danger);
    background: #fff7f8;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.cc-delete-button:hover,
.cc-delete-button:focus { transform: translateY(-2px); background: #ffecef; }

.cc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.cc-field-full { grid-column: 1 / -1; }

.cc-booking-page .has-error .form-control {
    border-color: #df6674;
    box-shadow: 0 0 0 3px rgba(223, 102, 116, .10);
}

.cc-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    color: var(--cc-muted);
    font-size: .82rem;
    cursor: pointer;
}

.cc-consent a { color: var(--cc-blue); font-weight: 700; }

.cc-form-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 20px; }

.cc-info-card { margin-top: 24px; }
.cc-info-card h2 { margin: 0 0 12px; color: var(--cc-navy); font-size: 1rem; }
.cc-info-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cc-info-list li { padding: 13px; border-radius: 11px; color: var(--cc-muted); background: #f4f9fd; font-size: .8rem; }
.cc-info-list strong { display: block; margin-bottom: 3px; color: var(--cc-ink); }

.cc-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 40px;
    border-top: 1px solid var(--cc-line);
    color: var(--cc-muted);
    background: rgba(248, 252, 255, .88);
    font-size: .8rem;
}

.cc-bottom-links { display: flex; flex-wrap: wrap; gap: 16px; }
.cc-bottom-bar a { color: var(--cc-navy); font-weight: 700; text-decoration: none; }
.cc-bottom-bar a:hover { color: var(--cc-blue); }

.cc-loading-note { padding: 24px; color: var(--cc-muted); text-align: center; }

@media (max-width: 1100px) {
    .cc-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cc-filter-grid .cc-btn { width: 100%; }
    .cc-content-grid { grid-template-columns: 1fr; }
    .cc-form-card { order: 1; }
    .cc-summary-card { order: 0; }
}

@media (max-width: 760px) {
    body.cc-booking-page { background: #f2f8fd; }
    .cc-app-shell { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .cc-app-topbar { min-height: 64px; padding: 10px 18px; }
    .cc-brand img { width: 172px; }
    .cc-brand-label { display: none; }
    .cc-top-link span { display: none; }
    .cc-top-link { width: 42px; padding: 0; justify-content: center; }
    .cc-hero { min-height: 174px; padding: 28px 18px; }
    .cc-hero-copy { max-width: calc(100% - 62px); }
    .cc-hero h1 { font-size: clamp(1.72rem, 8vw, 2.25rem); }
    .cc-hero p { font-size: .97rem; }
    .cc-hero-art { right: 0; width: 88px; height: 88px; opacity: .34; }
    .cc-calendar-icon { inset: 12px; border-radius: 16px; font-size: 2rem; }
    .cc-calendar-icon::before,
    .cc-calendar-icon::after { width: 7px; height: 18px; top: -7px; }
    .cc-calendar-icon::before { left: 16px; }
    .cc-calendar-icon::after { right: 16px; }
    .cc-plus-badge { width: 40px; height: 40px; border-width: 4px; font-size: 1rem; }
    .cc-main { padding: 0 14px 28px; }
    .cc-filter-card { padding: 16px; border-radius: 15px; }
    .cc-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .cc-filter-grid .cc-field:first-child { grid-column: 1 / -1; }
    .cc-filter-note { text-align: left; line-height: 1.35; }
    .cc-content-grid { gap: 16px; margin-top: 18px; }
    .cc-summary-card,
    .cc-form-card,
    .cc-info-card { padding: 16px; border-radius: 15px; }
    .cc-pager { flex-wrap: nowrap; gap: 5px; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: thin; }
    .cc-page-button { flex: 0 0 auto; min-width: 34px; height: 34px; }
    .cc-exam-main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 11px 10px; }
    .cc-exam-name { font-size: .9rem; }
    .cc-exam-main .cc-btn { min-height: 38px; padding: 0 14px; font-size: .82rem; }
    .cc-exam-detail { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 8px 10px; padding: 13px 10px; }
    .cc-detail-item { display: block; text-align: center; }
    .cc-detail-item .fa { display: block; margin-bottom: 4px; }
    .cc-detail-label,
    .cc-detail-value { font-size: .68rem; line-height: 1.25; }
    .cc-form-grid { gap: 14px 12px; }
    .cc-info-list { grid-template-columns: 1fr; }
    .cc-bottom-bar { padding: 18px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .cc-filter-grid { grid-template-columns: 1fr; }
    .cc-filter-grid .cc-field:first-child { grid-column: auto; }
    .cc-filter-grid .cc-btn { min-height: 46px; }
    .cc-form-grid { grid-template-columns: 1fr; }
    .cc-field-full { grid-column: auto; }
    .cc-form-actions { grid-template-columns: 1fr; }
    .cc-selected-item { padding: 12px; }
    .cc-section-head { align-items: center; }
    .cc-summary-card .cc-section-head { align-items: flex-start; flex-wrap: wrap; }
    .cc-summary-card .cc-section-title-wrap { width: 100%; }
    .cc-summary-card .cc-section-head > .cc-btn { width: 100%; }
    .cc-section-icon { width: 40px; height: 40px; }
    .cc-section-head h2 { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
