/* ============================================================
   Course registration (/Course/CreateCustomer) — "Онлайн бүртгэл".
   Scoped under .rc so it can't affect other pages.
   ============================================================ */

.rc {
    --rc-brand: #3f51b5;
    --rc-brand-d: #2c3a91;
    --rc-brand-l: #5c6bc0;
    --rc-accent: #ff7a59;
    --rc-ink: #16225a;
    --rc-body: #4d5468;
    --rc-muted: #8a90a2;
    --rc-line: #e4e7f2;
    --rc-bg-soft: #f6f7fb;
    --rc-radius: 18px;
    --rc-shadow: 0 22px 46px -22px rgba(22, 27, 51, .32);

    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    color: var(--rc-body);
    padding-bottom: 90px;
}
.rc * { box-sizing: border-box; }
.rc h1, .rc h2, .rc h3 { font-family: 'Montserrat', 'Roboto', sans-serif; color: var(--rc-ink); margin: 0; }
.rc__wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* ---------- Hero ---------- */
.rc-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 62px 22px 80px;
    background: linear-gradient(130deg, var(--rc-brand-d), var(--rc-brand) 55%, var(--rc-brand-l));
}
.rc-hero::before,
.rc-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.rc-hero::before { width: 300px; height: 300px; top: -140px; right: -60px; }
.rc-hero::after { width: 220px; height: 220px; bottom: -110px; left: -50px; background: rgba(255, 122, 89, .18); }
.rc-hero__eyebrow {
    position: relative; display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
}
.rc-hero h1 { position: relative; color: #fff; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.rc-hero p { position: relative; color: rgba(255, 255, 255, .9); max-width: 560px; margin: 14px auto 0; font-size: 16px; }
.rc-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.rc-hero__wave svg { width: 100%; height: 56px; display: block; }

/* ---------- Card ---------- */
.rc-body { position: relative; margin-top: -46px; }
.rc__wrap--narrow { max-width: 520px; }
.rc-card {
    background: #fff;
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 36px;
}

/* validation errors (shared) */
.rc .validation-summary-valid { display: none; }
.rc .validation-summary-errors {
    background: rgba(210, 63, 77, .08);
    border: 1px solid rgba(210, 63, 77, .3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.rc .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }
.rc .validation-summary-errors li,
.rc .text-danger { color: #d23f4d; font-size: 13.5px; line-height: 1.55; }

/* ---------- Fields grid ---------- */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.rc-field--full { grid-column: 1 / -1; }
.rc-field label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--rc-ink);
    margin-bottom: 7px;
}

.rc input[type="text"],
.rc input[type="email"],
.rc select,
.rc textarea,
.rc .form-control {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--rc-line) !important;
    border-radius: 11px !important;
    padding: 0 14px !important;
    font-size: 14.5px !important;
    color: var(--rc-ink);
    background: #fff !important;
    font-family: inherit;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.rc textarea, .rc textarea.form-control {
    height: auto !important;
    min-height: 110px;
    padding: 12px 14px !important;
    line-height: 1.6;
    resize: vertical;
}
.rc input:focus, .rc select:focus, .rc textarea:focus {
    outline: none;
    border-color: var(--rc-brand) !important;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, .14) !important;
}

/* ---------- Datepicker input-group ---------- */
.rc .input-group.date { display: flex; position: relative; }
.rc .input-group.date .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}
.rc .input-group.date .input-group-addon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; flex: none;
    border: 1.5px solid var(--rc-line);
    border-left: 0;
    border-radius: 0 11px 11px 0;
    background: var(--rc-bg-soft);
    color: var(--rc-brand);
    cursor: pointer;
}

/* ---------- Submit ---------- */
.rc-actions { margin-top: 28px; text-align: center; }
.rc-btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--rc-brand-l), var(--rc-brand));
    border: 0; border-radius: 999px;
    padding: 15px 40px; cursor: pointer;
    box-shadow: 0 14px 26px -12px rgba(63, 81, 181, .8);
    transition: transform .2s ease;
}
.rc-btn:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) { .rc-grid { grid-template-columns: repeat(2, 1fr); } .rc-card { padding: 26px 20px; } }
@media (max-width: 480px) { .rc-grid { grid-template-columns: 1fr; } .rc-btn { width: 100%; justify-content: center; } }
