/**
 * MindWell Training Inquiry Form Styles
 * Matching mindwellcentercom.kinsta.cloud design
 */

:root {
    --mw-dark-brown: #3d2e1f;
    --mw-tan: #d9c9ae;
    --mw-gold: #b8935c;
    --mw-gold-dark: #9a7a47;
    --mw-cream: #f7f4ef;
    --mw-cream-dark: #efe9de;
    --mw-border: #e5dccd;
    --mw-text: #3d2e1f;
    --mw-text-muted: #7a6a56;
    --mw-error: #c0392b;
    --mw-success: #5a7a3c;
    --mw-white: #ffffff;
}

/* ===== CONTAINER ===== */
.mindwell-trinq-form-wrapper {
    font-family: 'PT Serif', 'Noto Serif', Georgia, serif;
    color: var(--mw-text);
    background: var(--mw-cream);
    max-width: 920px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    line-height: 1.6;
    box-sizing: border-box;
}
.mindwell-trinq-form-wrapper *,
.mindwell-trinq-form-wrapper *::before,
.mindwell-trinq-form-wrapper *::after {
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.mw-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mw-border);
}
.mw-form-header h2 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 32px;
    color: var(--mw-dark-brown);
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.mw-form-header p {
    color: var(--mw-text-muted);
    font-size: 16px;
    margin: 0;
    font-style: italic;
}

/* ===== PROGRESS BAR ===== */
.mw-progress-container {
    margin-bottom: 40px;
}
.mw-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--mw-text-muted);
    letter-spacing: 0.3px;
}
.mw-progress-info .mw-step-label {
    font-weight: 600;
    color: var(--mw-dark-brown);
}
.mw-progress-bar {
    background: var(--mw-border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.mw-progress-fill {
    background: linear-gradient(90deg, var(--mw-gold), var(--mw-gold-dark));
    height: 100%;
    width: 5%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

/* ===== STEP CARD ===== */
.mw-step {
    display: none;
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 20px rgba(61, 46, 31, 0.06);
    animation: mw-fade-in 0.4s ease;
}
.mw-step.active {
    display: block;
}
@keyframes mw-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mw-step-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 24px;
    color: var(--mw-dark-brown);
    margin: 0 0 8px;
    font-weight: 700;
}
.mw-step-description {
    color: var(--mw-text-muted);
    margin: 0 0 28px;
    font-size: 15px;
    font-style: italic;
}

/* ===== FIELDS ===== */
.mw-field {
    margin-bottom: 24px;
}
.mw-field.mw-hidden { display: none; }

.mw-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--mw-dark-brown);
    margin-bottom: 10px;
    line-height: 1.5;
}
.mw-label .mw-required {
    color: var(--mw-error);
    margin-left: 3px;
}
.mw-hint {
    display: block;
    font-size: 13px;
    color: var(--mw-text-muted);
    margin-top: -4px;
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.5;
}

/* Text inputs */
.mw-input,
.mw-textarea,
.mw-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--mw-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: var(--mw-text);
    background: var(--mw-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mw-input:focus,
.mw-textarea:focus,
.mw-select:focus {
    outline: none;
    border-color: var(--mw-gold);
    box-shadow: 0 0 0 3px rgba(184, 147, 92, 0.15);
}
.mw-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}
.mw-word-count {
    font-size: 12px;
    color: var(--mw-text-muted);
    margin-top: 6px;
    text-align: right;
    font-style: italic;
}
.mw-word-count.mw-wc-valid { color: var(--mw-success); }
.mw-word-count.mw-wc-invalid { color: var(--mw-error); }

/* Row layouts */
.mw-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.mw-row > .mw-col {
    flex: 1;
    min-width: 180px;
}

/* Phone */
.mw-phone-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mw-phone-group input {
    text-align: center;
}
.mw-phone-group .mw-phone-cc { max-width: 70px; }
.mw-phone-group .mw-phone-first { max-width: 90px; }
.mw-phone-group .mw-phone-second { max-width: 110px; }
.mw-phone-dash {
    color: var(--mw-text-muted);
    font-weight: bold;
}

/* ===== RADIO & CHECKBOX CARDS ===== */
.mw-choice-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mw-choice-group.mw-side-by-side {
    flex-direction: row;
    flex-wrap: wrap;
}
.mw-choice-group.mw-side-by-side .mw-choice { flex: 1; min-width: 130px; }
.mw-choice-group.mw-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mw-choice {
    position: relative;
    display: block;
    cursor: pointer;
}
.mw-choice input[type="radio"],
.mw-choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mw-choice-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--mw-border);
    border-radius: 8px;
    background: var(--mw-white);
    transition: all 0.2s ease;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mw-text);
}
.mw-choice-label::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--mw-border);
    background: var(--mw-white);
    margin-top: 2px;
    transition: all 0.2s ease;
}
.mw-choice input[type="radio"] + .mw-choice-label::before {
    border-radius: 50%;
}
.mw-choice input[type="checkbox"] + .mw-choice-label::before {
    border-radius: 4px;
}
.mw-choice:hover .mw-choice-label {
    border-color: var(--mw-gold);
    background: var(--mw-cream);
}
.mw-choice input:checked + .mw-choice-label {
    border-color: var(--mw-gold);
    background: var(--mw-cream);
    box-shadow: 0 0 0 2px rgba(184, 147, 92, 0.15);
}
.mw-choice input[type="radio"]:checked + .mw-choice-label::before {
    border-color: var(--mw-gold);
    background: radial-gradient(var(--mw-gold) 45%, transparent 50%);
}
.mw-choice input[type="checkbox"]:checked + .mw-choice-label::before {
    border-color: var(--mw-gold);
    background: var(--mw-gold);
}
.mw-choice input[type="checkbox"]:checked + .mw-choice-label::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 18px;
    width: 6px;
    height: 11px;
    border-right: 2px solid var(--mw-white);
    border-bottom: 2px solid var(--mw-white);
    transform: rotate(45deg);
}
.mw-choice input:focus + .mw-choice-label {
    box-shadow: 0 0 0 3px rgba(184, 147, 92, 0.25);
}

/* "Other" text input inline with checkbox */
.mw-other-input {
    margin-top: 8px;
    width: 100%;
}

/* ===== MATRIX (AVAILABILITY) ===== */
.mw-matrix-wrapper {
    overflow-x: auto;
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    background: var(--mw-white);
}
.mw-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}
.mw-matrix th,
.mw-matrix td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--mw-border);
    border-right: 1px solid var(--mw-border);
    font-size: 14px;
}
.mw-matrix th:last-child,
.mw-matrix td:last-child { border-right: none; }
.mw-matrix tr:last-child td { border-bottom: none; }
.mw-matrix thead th {
    background: var(--mw-cream);
    color: var(--mw-dark-brown);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.mw-matrix tbody th {
    background: var(--mw-cream-dark);
    color: var(--mw-dark-brown);
    font-weight: 600;
    text-align: left;
    padding-left: 16px;
    width: 80px;
}
.mw-matrix td {
    cursor: pointer;
    transition: background 0.15s;
}
.mw-matrix td:hover { background: var(--mw-cream); }
.mw-matrix input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--mw-gold);
    cursor: pointer;
}

/* ===== FILE UPLOAD ===== */
.mw-file-upload {
    border: 2px dashed var(--mw-border);
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    background: var(--mw-cream);
    cursor: pointer;
    transition: all 0.2s;
}
.mw-file-upload:hover,
.mw-file-upload.mw-drag-over {
    border-color: var(--mw-gold);
    background: var(--mw-cream-dark);
}
.mw-file-upload input[type="file"] {
    /* Don't hide the input — it needs to receive clicks.
       Make it visually invisible but cover the zone so clicks register. */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.mw-file-icon {
    font-size: 36px;
    color: var(--mw-gold);
    margin-bottom: 8px;
    display: block;
}
.mw-file-prompt {
    color: var(--mw-dark-brown);
    font-weight: 600;
    margin-bottom: 4px;
}
.mw-file-prompt strong { color: var(--mw-gold-dark); }
.mw-file-hint {
    font-size: 13px;
    color: var(--mw-text-muted);
    font-style: italic;
}
.mw-file-preview {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    border-radius: 6px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}
.mw-file-preview.mw-visible { display: flex; }
.mw-file-preview .mw-file-name {
    color: var(--mw-dark-brown);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.mw-file-preview .mw-file-remove {
    background: transparent;
    border: none;
    color: var(--mw-error);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    padding: 4px 8px;
}
.mw-file-uploading {
    display: none;
    color: var(--mw-gold-dark);
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}
.mw-file-uploading.mw-visible { display: block; }

/* ===== DESCRIPTION / INFO BOX ===== */
.mw-info-box {
    background: var(--mw-cream);
    border-left: 4px solid var(--mw-gold);
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
    color: var(--mw-dark-brown);
    font-size: 14px;
    line-height: 1.6;
}
.mw-info-box strong { color: var(--mw-dark-brown); }

/* ===== TERMS ===== */
.mw-terms-box {
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    padding: 20px 24px;
    background: var(--mw-cream);
    font-size: 14px;
    line-height: 1.7;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    color: var(--mw-text);
}
.mw-terms-box h4 {
    font-family: 'PT Serif', Georgia, serif;
    color: var(--mw-dark-brown);
    margin: 16px 0 6px;
    font-size: 16px;
}
.mw-terms-box h4:first-child { margin-top: 0; }
.mw-terms-box a { color: var(--mw-gold-dark); }

/* ===== ERRORS ===== */
.mw-field-error {
    color: var(--mw-error);
    font-size: 13px;
    margin-top: 6px;
    display: none;
    font-style: italic;
}
.mw-field-error.mw-visible { display: block; }
.mw-field.mw-has-error .mw-input,
.mw-field.mw-has-error .mw-textarea,
.mw-field.mw-has-error .mw-select {
    border-color: var(--mw-error);
}
.mw-field.mw-has-error .mw-choice-label {
    border-color: var(--mw-error);
}

/* ===== BUTTONS ===== */
.mw-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--mw-border);
    gap: 12px;
}
.mw-btn {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.4px;
    border: 1.5px solid transparent;
    min-width: 120px;
}
.mw-btn-prev {
    background: var(--mw-white);
    color: var(--mw-dark-brown);
    border-color: var(--mw-border);
}
.mw-btn-prev:hover {
    background: var(--mw-cream);
    border-color: var(--mw-gold);
}
.mw-btn-next,
.mw-btn-submit {
    background: var(--mw-dark-brown);
    color: var(--mw-white);
    border-color: var(--mw-dark-brown);
}
.mw-btn-next:hover,
.mw-btn-submit:hover {
    background: var(--mw-gold-dark);
    border-color: var(--mw-gold-dark);
}
.mw-btn-submit {
    background: var(--mw-gold);
    border-color: var(--mw-gold);
}
.mw-btn-submit:hover {
    background: var(--mw-gold-dark);
    border-color: var(--mw-gold-dark);
}
.mw-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.mw-btn-prev.mw-invisible { visibility: hidden; }

/* ===== SUCCESS SCREEN ===== */
.mw-success {
    display: none;
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(61, 46, 31, 0.06);
}
.mw-success.mw-visible { display: block; }
.mw-success-icon {
    width: 80px;
    height: 80px;
    background: var(--mw-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.mw-success-icon::after {
    content: '';
    width: 24px;
    height: 44px;
    border-right: 4px solid var(--mw-white);
    border-bottom: 4px solid var(--mw-white);
    transform: rotate(45deg) translate(-4px, -4px);
}
.mw-success h2 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 32px;
    color: var(--mw-dark-brown);
    margin: 0 0 16px;
}
.mw-success p {
    color: var(--mw-text);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 12px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.mw-crisis-notice {
    margin-top: 30px;
    padding: 18px 22px;
    background: var(--mw-cream);
    border-left: 4px solid var(--mw-error);
    border-radius: 6px;
    font-size: 14px;
    color: var(--mw-dark-brown);
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.mw-crisis-notice strong { color: var(--mw-error); }

/* ===== LOADING OVERLAY ===== */
.mw-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 46, 31, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.mw-loading-overlay.mw-visible { display: flex; }
.mw-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--mw-cream);
    border-top-color: var(--mw-gold);
    border-radius: 50%;
    animation: mw-spin 0.8s linear infinite;
}
@keyframes mw-spin { to { transform: rotate(360deg); } }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .mindwell-trinq-form-wrapper { padding: 16px 12px 40px; }
    .mw-form-header h2 { font-size: 26px; }
    .mw-step { padding: 28px 20px; }
    .mw-step-title { font-size: 20px; }
    .mw-choice-group.mw-two-col { grid-template-columns: 1fr; }
    .mw-choice-group.mw-side-by-side { flex-direction: column; }
    .mw-buttons { flex-direction: column-reverse; }
    .mw-btn { width: 100%; }
    .mw-row { flex-direction: column; gap: 10px; }
    .mw-row > .mw-col { min-width: 100%; }
    .mw-phone-group .mw-phone-cc,
    .mw-phone-group .mw-phone-first,
    .mw-phone-group .mw-phone-second { max-width: none; }
    .mw-matrix tbody th { width: 60px; padding-left: 10px; font-size: 13px; }
    .mw-matrix th, .mw-matrix td { padding: 8px 6px; font-size: 12px; }
}

/* ============================================================
   ADDITIONS FOR THERAPY FORM TEMPLATE (21 pages, 3 flows)
   ============================================================ */

/* Step counter (header) */
.mw-step-counter {
    font-weight: 600;
    color: var(--mw-dark-brown);
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Conditional fields */
.mw-conditional { display: block; }

/* Compound input rows */
.mw-name-row,
.mw-address-row,
.mw-phone-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.mw-name-row > .mw-input,
.mw-address-row > .mw-input {
    flex: 1 1 0;
    min-width: 140px;
}

/* Phone */
.mw-phone-row { gap: 6px; }
.mw-phone-area { max-width: 70px !important; flex: 0 0 70px; }
.mw-phone-prefix { max-width: 80px !important; flex: 0 0 80px; }
.mw-phone-line { max-width: 100px !important; flex: 0 0 100px; }
.mw-phone-sep {
    color: var(--mw-text-muted);
    font-weight: 700;
    user-select: none;
    padding: 0 2px;
}

/* Date */
.mw-date { max-width: 240px; }

/* Side-by-side / two-column choice groups */
.mw-choice-side-by-side {
    display: flex;
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
}
.mw-choice-side-by-side .mw-choice {
    flex: 1 1 0;
    min-width: 140px;
}
.mw-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Checkbox card (acknowledgments) */
.mw-checkbox-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--mw-cream);
    border: 2px solid var(--mw-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mw-checkbox-card:hover {
    border-color: var(--mw-gold);
    background: var(--mw-cream-dark);
}
.mw-checkbox-card input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--mw-gold);
}
.mw-checkbox-card:has(input:checked) {
    border-color: var(--mw-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 147, 92, 0.15);
}
.mw-checkbox-content {
    flex: 1;
    display: block;
    line-height: 1.55;
}
.mw-checkbox-content strong {
    display: block;
    font-size: 16px;
    color: var(--mw-dark-brown);
    margin-bottom: 4px;
}
.mw-checkbox-content small {
    display: block;
    color: var(--mw-text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* "Other" toggle pattern */
.mw-choice-other { position: relative; }
.mw-other-input {
    display: none;
    margin-top: 8px;
    width: 100%;
}
.mw-choice-other:has(.mw-other-toggle:checked) .mw-other-input {
    display: block;
}

/* Matrix table — supports both 3-col (Yes/No) and 6-col (availability) */
.mw-matrix-table {
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-top: 8px;
}
.mw-matrix-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    align-items: center;
    border-bottom: 1px solid var(--mw-border);
}
/* Availability matrix has 5 day columns + question = 6 cols */
.mw-matrix-row:has(.mw-matrix-option:nth-child(6)) {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
}
.mw-matrix-row:last-child { border-bottom: none; }
.mw-matrix-header {
    background: var(--mw-cream);
    font-weight: 700;
    color: var(--mw-dark-brown);
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.mw-matrix-question {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mw-text);
}
.mw-matrix-option {
    padding: 14px 0;
    text-align: center;
    border-left: 1px solid var(--mw-border);
}
.mw-matrix-option label {
    display: block;
    cursor: pointer;
}
.mw-matrix-option input[type="radio"],
.mw-matrix-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--mw-gold);
    cursor: pointer;
}

/* File upload zones */
.mw-file-upload { position: relative; }
.mw-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.mw-file-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px;
    background: var(--mw-cream);
    border: 2px dashed var(--mw-border);
    border-radius: 10px;
    color: var(--mw-text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.mw-file-upload:hover .mw-file-zone {
    border-color: var(--mw-gold);
    background: var(--mw-cream-dark);
    color: var(--mw-dark-brown);
}
.mw-file-icon {
    font-size: 18px;
    color: var(--mw-gold);
}
.mw-file-text { font-family: inherit; }
.mw-file-preview { margin-top: 8px; }
.mw-uploading {
    padding: 10px 14px;
    color: var(--mw-text-muted);
    font-style: italic;
    font-size: 13px;
}
.mw-file-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(90, 122, 60, 0.08);
    border: 1px solid var(--mw-success);
    border-radius: 8px;
    color: var(--mw-success);
    font-size: 14px;
    font-weight: 600;
}
.mw-file-remove {
    background: none;
    border: 1px solid var(--mw-success);
    color: var(--mw-success);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
}
.mw-file-remove:hover { background: var(--mw-success); color: #fff; }

/* Success screen */
.mw-success-screen {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(61, 46, 31, 0.06);
}
.mw-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--mw-success);
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mw-success-screen h3 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 28px;
    color: var(--mw-dark-brown);
    margin: 0 0 12px;
}
.mw-success-screen p {
    color: var(--mw-text-muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* Mobile additions */
@media (max-width: 640px) {
    .mw-two-columns { grid-template-columns: 1fr; }
    .mw-choice-side-by-side { flex-direction: column; }
    .mw-name-row, .mw-address-row { flex-direction: column; gap: 8px; }
    .mw-name-row > .mw-input, .mw-address-row > .mw-input { width: 100%; min-width: 0; }
    .mw-matrix-row { grid-template-columns: 1fr 60px 60px; }
    .mw-matrix-row:has(.mw-matrix-option:nth-child(6)) {
        grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
        font-size: 12px;
    }
    .mw-matrix-question { padding: 10px 12px; font-size: 12px; }
    .mw-matrix-option { padding: 10px 0; }
}

/* ============================================================
   ADDITIONS FOR TRAINEE INQUIRY FORM
   ============================================================ */

/* Two-column form layout (label rows) */
.mw-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Choice cards (radio with description) */
.mw-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--mw-cream);
    border: 2px solid var(--mw-border);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}
.mw-choice-card:hover {
    border-color: var(--mw-gold);
    background: var(--mw-cream-dark);
}
.mw-choice-card input[type="radio"] {
    flex: 0 0 auto;
    margin-top: 4px;
    accent-color: var(--mw-gold);
}
.mw-choice-card:has(input:checked) {
    border-color: var(--mw-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 147, 92, 0.15);
}
.mw-choice-content {
    flex: 1;
    display: block;
    line-height: 1.55;
}
.mw-choice-content strong {
    display: block;
    font-size: 16px;
    color: var(--mw-dark-brown);
    margin-bottom: 4px;
}
.mw-choice-content small {
    display: block;
    color: var(--mw-text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* Practicum / placement table */
.mw-practicum-table {
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-top: 8px;
}
.mw-practicum-header,
.mw-practicum-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 0;
    border-bottom: 1px solid var(--mw-border);
}
.mw-practicum-header {
    background: var(--mw-cream);
    font-weight: 700;
    color: var(--mw-dark-brown);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.mw-practicum-header > div {
    padding: 10px 12px;
    border-left: 1px solid var(--mw-border);
}
.mw-practicum-header > div:first-child { border-left: none; }
.mw-practicum-row > input {
    border: none;
    border-left: 1px solid var(--mw-border);
    border-radius: 0;
    padding: 10px 12px;
    background: #fff;
    font-size: 14px;
    color: var(--mw-text);
    width: 100%;
    box-sizing: border-box;
}
.mw-practicum-row > input:first-child { border-left: none; }
.mw-practicum-row > input:focus {
    outline: none;
    background: var(--mw-cream);
    box-shadow: inset 0 0 0 2px var(--mw-gold);
}
.mw-practicum-row:last-child { border-bottom: none; }

/* Reference block */
.mw-reference-block {
    background: var(--mw-cream);
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.mw-reference-heading {
    margin: 0 0 14px;
    color: var(--mw-gold-dark);
    font-family: 'PT Serif', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.mw-reference-heading small {
    font-weight: 400;
    color: var(--mw-text-muted);
    font-style: italic;
}

/* "Add another reference" button (link-style) */
.mw-btn-link,
.mw-add-ref-btn {
    background: none;
    border: 1px dashed var(--mw-gold);
    color: var(--mw-gold-dark);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: all 0.15s ease;
}
.mw-btn-link:hover,
.mw-add-ref-btn:hover {
    background: var(--mw-cream);
    border-style: solid;
}

/* Form footer */
.mw-form-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--mw-border);
    text-align: center;
    color: var(--mw-text-muted);
    font-size: 13px;
}
.mw-form-footer a {
    color: var(--mw-gold-dark);
    text-decoration: none;
}
.mw-form-footer a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 640px) {
    .mw-two-cols { grid-template-columns: 1fr; gap: 12px; }
    .mw-practicum-header { display: none; }
    .mw-practicum-row {
        grid-template-columns: 1fr;
        border-bottom: 2px solid var(--mw-border);
        margin-bottom: 12px;
    }
    .mw-practicum-row > input {
        border-left: none;
        border-bottom: 1px solid var(--mw-border);
    }
    .mw-practicum-row > input:last-child { border-bottom: none; }
}

/* Footnote (under submit button) */
.mw-form-footnote {
    margin-top: 20px;
    text-align: center;
    color: var(--mw-text-muted);
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
}
