/* MSV Coach Registration Form */

.msv-reg-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

.msv-reg-header {
    margin-bottom: 28px;
}
.msv-reg-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a202c;
}
.msv-reg-header p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

/* Sections */
.msv-reg-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.msv-reg-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a202c;
}

/* Fields */
.msv-reg-row { margin-bottom: 14px; }
.msv-reg-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 520px) {
    .msv-reg-row--half { grid-template-columns: 1fr; }
}

.msv-reg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}
.msv-reg-field label .req { color: #e53e3e; }

.msv-reg-field input[type="text"],
.msv-reg-field input[type="email"],
.msv-reg-field input[type="password"] {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a202c;
    background: #f7fafc;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.msv-reg-field input:focus {
    outline: none;
    border-color: #38b2ac;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(56,178,172,0.15);
}
.msv-reg-field input.is-error { border-color: #e53e3e; }

.msv-field-error {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 16px;
}

/* Team picker */
.msv-reg-hint {
    font-size: 13px;
    color: #718096;
    margin-bottom: 14px;
}

.msv-team-search-wrap {
    position: relative;
    margin-bottom: 16px;
}
.msv-team-search-wrap input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    background: #f7fafc;
    box-sizing: border-box;
}
.msv-team-search-wrap input:focus {
    outline: none;
    border-color: #38b2ac;
    background: #fff;
}

.msv-team-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
.msv-team-dropdown-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.msv-team-dropdown-item:last-child { border-bottom: none; }
.msv-team-dropdown-item:hover { background: #f0fff4; }

/* Grouped team list */
.msv-team-groups {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.msv-team-group-header {
    position: sticky;
    top: 0;
    background: #1a202c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
}
.msv-team-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.1s;
}
.msv-team-group-item:last-child { border-bottom: none; }
.msv-team-group-item:hover { background: #f0fff4; }
.msv-team-group-item.is-selected {
    background: #e6fffa;
    color: #1a202c;
    font-weight: 600;
}

.msv-program-badges {
    display: flex;
    gap: 6px;
}
.msv-program-badge {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.12s;
}
.msv-program-badge--boys {
    background: #ebf8ff;
    color: #2b6cb0;
    border-color: #bee3f8;
}
.msv-program-badge--boys:hover,
.msv-program-badge--boys.active {
    background: #2b6cb0;
    color: #fff;
    border-color: #2b6cb0;
}
.msv-program-badge--girls {
    background: #fff5f7;
    color: #b83280;
    border-color: #fed7e2;
}
.msv-program-badge--girls:hover,
.msv-program-badge--girls.active {
    background: #b83280;
    color: #fff;
    border-color: #b83280;
}

.msv-team-loading {
    padding: 16px;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
}

/* Selected teams */
.msv-selected-teams {
    margin-top: 14px;
    min-height: 32px;
}
.msv-selected-empty {
    font-size: 13px;
    color: #a0aec0;
    font-style: italic;
}
.msv-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a202c;
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 4px 4px 0;
}
.msv-selected-chip--boys  { background: #2b6cb0; }
.msv-selected-chip--girls { background: #b83280; }
.msv-chip-remove {
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1;
}
.msv-chip-remove:hover { opacity: 1; }

/* Role */
.msv-role-options {
    display: flex;
    gap: 16px;
}
.msv-role-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.12s;
}
.msv-role-option:has(input:checked) {
    border-color: #38b2ac;
    background: #e6fffa;
    font-weight: 600;
}

/* Submit */
.msv-reg-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.msv-reg-submit {
    padding: 12px 32px;
    background: #1a202c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.msv-reg-submit:hover { background: #2d3748; }
.msv-reg-submit:disabled { background: #a0aec0; cursor: not-allowed; }

.msv-reg-status {
    font-size: 13px;
    color: #e53e3e;
}

/* Notice boxes */
.msv-reg-notice {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.msv-reg-notice--success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}
.msv-reg-notice--info {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    color: #2a4365;
}
