/**
 * BSERI — compact modular contact / enrollment forms
 * Square corners, tight spacing, split-panel layout
 */

.contact-form-container,
.cmsp-enroll-card-wrap {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--color-border, #dde3f0);
}

.contact-form-panel,
.cmsp-enroll-panel {
    border-radius: 0;
    padding: 1.75rem 1.5rem;
}

.cmsp-enroll-form-col,
.contact-form-body {
    border-radius: 0;
    padding: 1.75rem 1.5rem;
    background: var(--color-bg, #fff);
}

@media (min-width: 992px) {
    .contact-form-panel,
    .cmsp-enroll-panel {
        padding: 2rem 1.75rem;
    }
    .cmsp-enroll-form-col,
    .contact-form-body {
        padding: 2rem 1.75rem;
    }
}

/* Panel specs (investment, duration, certificate) */
.enroll-spec-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.enroll-spec {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.enroll-spec-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.95rem;
}

.enroll-spec-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 0.15rem;
}

.enroll-spec-value {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.cmsp-enroll-panel-title,
.contact-form-panel h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cmsp-enroll-panel .panel-summary,
.contact-form-panel .panel-summary {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.form-header-compact {
    margin-bottom: 1rem;
}

.form-header-compact h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.form-header-compact p {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

/* Compact field grid */
.modern-form.modern-form--compact .form-grid {
    --form-gap: 0.75rem;
}

.modern-form.modern-form--compact .row.g-compact {
    --bs-gutter-y: var(--form-gap);
    --bs-gutter-x: var(--form-gap);
}

.modern-form.modern-form--compact .form-field {
    margin-bottom: 0;
}

.modern-form.modern-form--compact .form-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-muted, #64748b);
    margin-bottom: 0.3rem;
}

.modern-form.modern-form--compact .form-control,
.modern-form.modern-form--compact .form-select {
    border: 1px solid var(--color-border, #dde3f0);
    border-radius: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 2.25rem;
    background: var(--color-bg, #fff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modern-form.modern-form--compact textarea.form-control {
    min-height: 4.5rem;
    resize: vertical;
}

.modern-form.modern-form--compact .form-control:focus,
.modern-form.modern-form--compact .form-select:focus {
    border-color: var(--color-primary, #1c4484);
    box-shadow: 0 0 0 2px rgba(28, 68, 132, 0.12);
    outline: none;
}

.modern-form.modern-form--compact .btn-form-submit,
.cmsp-enroll-submit {
    border-radius: 0;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 2.5rem;
}

.modern-form.modern-form--compact .form-reassurance {
    font-size: 0.75rem;
    color: var(--color-text-muted, #64748b);
    margin-top: 0.5rem;
    text-align: center;
}

/* Contact page panel */
.contact-form-panel {
    background: linear-gradient(
        160deg,
        var(--about-navy, var(--color-about-navy, #1a2952)) 0%,
        var(--about-navy-deep, var(--color-about-navy-deep, #0f172a)) 100%
    );
}

.contact-form-panel .contact-method {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-panel .contact-method:last-of-type {
    border-bottom: none;
}

.contact-form-panel .contact-method-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
}

.contact-form-panel .business-hours-block {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
}

.contact-form-panel .business-hours-block h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.modern-form.modern-form--compact .form-notice {
    border-radius: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.modern-form.modern-form--compact .form-check-input {
    border-radius: 0;
}

/* Enrollment consent card */
.consent-card {
    border: 1px solid var(--color-border, #dde3f0);
    background: #f8fafc;
    padding: 1rem 1rem 0.85rem;
}

.consent-card-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-heading, #0f172a);
    margin: 0 0 0.75rem;
}

.consent-notice {
    margin-bottom: 1rem;
}

.consent-notice-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.consent-notice-title {
    display: block;
    color: var(--color-primary-hover, #163a72);
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}

.consent-notice-text {
    color: var(--color-primary-dark, #1e3a5f);
    font-size: 0.8125rem;
    line-height: 1.55;
    margin: 0;
}

.consent-notice-link {
    color: var(--color-primary, #1c4484);
    text-decoration: underline;
}

.consent-group {
    border: 0;
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.75rem;
    min-width: 0;
}

.consent-group--required {
    background: #fff;
    border: 1px solid var(--color-border, #dde3f0);
}

.consent-group--optional {
    background: #fff;
    border: 1px dashed #cbd5e1;
}

.consent-group-label {
    float: none;
    display: inline-block;
    width: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.55rem;
    padding: 0;
    line-height: 1.2;
}

.consent-group--required .consent-group-label {
    color: #b91c1c;
}

.consent-group--optional .consent-group-label {
    color: #64748b;
}

.consent-check {
    margin-bottom: 0.55rem;
}

.consent-check:last-child {
    margin-bottom: 0;
}

.consent-check .form-check-input {
    border: 2px solid var(--color-border, #dde3f0);
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
}

.consent-check .form-check-label {
    color: #374151;
    font-size: 0.8125rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-check .form-check-label a {
    color: var(--color-primary, #1c4484);
    text-decoration: underline;
}

.consent-withdrawal {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-muted, #64748b);
    margin: 0;
    padding-top: 0.15rem;
}

.consent-withdrawal a {
    color: var(--color-primary, #1c4484);
}

.consent-terms {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border, #dde3f0);
}
