
.moot-wrap {
    --moot-accent: #C9A24D;
    --moot-accent-dark: #A98636;
    --moot-text: #1c2434;
    --moot-muted: #657084;
    --moot-border: #dde3ec;
    --moot-soft: #F7F5F0;
    --moot-danger: #B42318;
    --moot-progress: #F00404;
    --moot-radius: 14px;
    max-width: 980px;
    margin: 36px auto;
    color: var(--moot-text);
    font-family: inherit;
}

.moot-card {
    background: #fff;
    border: 1px solid var(--moot-border);
    border-radius: 20px;
    padding: 42px;
    box-shadow: 0 10px 35px rgba(23, 39, 74, .06);
}

.moot-heading { margin-bottom: 28px; }
.moot-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--moot-accent);
}
.moot-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
}
.moot-heading p, .moot-section-header p {
    margin: 0;
    color: var(--moot-muted);
}

.moot-progress { margin: 28px 0 38px; }
.moot-progress-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf5;
}
.moot-progress-bar span {
    display: block;
    height: 100%;
    width: 16.666%;
    border-radius: 999px;
    background: var(--moot-progress);
    transition: width .3s ease;
}
.moot-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    font-size: 13px;
    color: var(--moot-muted);
}
#moot-step-title { font-weight: 700; color: var(--moot-text); }

.moot-step { display: none; }
.moot-step.is-active { display: block; animation: mootFade .22s ease; }
@keyframes mootFade { from { opacity: .35; transform: translateY(4px);} to { opacity: 1; transform:none;} }

.moot-section-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 27px;
}
.moot-section-number {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--moot-soft);
    color: var(--moot-accent);
    font-size: 13px;
    font-weight: 800;
}
.moot-section-header h3 {
    margin: 1px 0 5px;
    font-size: 24px;
}

.moot-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}
.moot-col-12 { grid-column: span 12; }
.moot-col-8 { grid-column: span 8; }
.moot-col-6 { grid-column: span 6; }
.moot-col-4 { grid-column: span 4; }

.moot-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}
.moot-field label span { color: var(--moot-danger); }
.moot-field input,
.moot-field select {
    width: 100%;
    min-height: 49px;
    padding: 10px 13px;
    background: #fff;
    color: var(--moot-text);
    border: 1px solid #cfd6e2;
    border-radius: 9px;
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.moot-field input:focus,
.moot-field select:focus {
    border-color: var(--moot-accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 77, .18);
}
.moot-field .is-invalid {
    border-color: var(--moot-danger);
    box-shadow: 0 0 0 3px rgba(180,35,24,.08);
}

.moot-person-card {
    border: 1px solid var(--moot-border);
    border-radius: var(--moot-radius);
    padding: 24px;
    margin-bottom: 18px;
    background: #fff;
}
.moot-person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}
.moot-person-head h4 { margin: 0; font-size: 18px; }
.moot-remove {
    padding: 5px 0;
    border: 0;
    background: none;
    color: var(--moot-danger);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
}

.moot-representative {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    background: var(--moot-soft);
    font-weight: 700;
    cursor: pointer;
}
.moot-representative input,
.moot-check input { accent-color: var(--moot-accent); }

.moot-add-button {
    width: 100%;
    min-height: 49px;
    border: 1px dashed #aab5c7;
    border-radius: 10px;
    background: var(--moot-soft);
    color: var(--moot-accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.moot-add-button:hover,
.moot-add-button:focus {
    border-color: #C9A24D !important;
    background: #C9A24D !important;
    background-color: #C9A24D !important;
    color: #FFFFFF !important;
}

.moot-inline-notice,
.moot-version-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #F8F6F1;
    color: #3E3E3E;
    font-size: 14px;
}
.moot-version-notice { margin: 20px 0 0; }

.moot-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.moot-check input {
    flex: 0 0 auto;
    margin-top: 3px;
    width: 17px;
    height: 17px;
}
.moot-declarations {
    display: grid;
    gap: 14px;
}
.moot-declarations .moot-check {
    padding: 18px;
    border: 1px solid var(--moot-border);
    border-radius: 12px;
    line-height: 1.55;
}

.moot-review-section {
    margin-bottom: 16px;
    border: 1px solid var(--moot-border);
    border-radius: 12px;
    overflow: hidden;
}
.moot-review-section h4 {
    margin: 0;
    padding: 13px 16px;
    background: var(--moot-soft);
    font-size: 15px;
}
.moot-review-body { padding: 15px 16px; }
.moot-review-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 2fr;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f5;
}
.moot-review-row:last-child { border-bottom: 0; }
.moot-review-row span { color: var(--moot-muted); font-size: 13px; }
.moot-review-row strong { font-size: 14px; overflow-wrap: anywhere; }
.moot-rep-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 99px;
    background: #F2E8CF;
    color: var(--moot-accent);
    font-size: 11px;
    font-weight: 800;
}

.moot-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    margin-top: 22px;
    border-radius: 14px;
    background: #111111;
    color: #fff;
}
.moot-price-card span { display:block; font-weight: 800; }
.moot-price-card small { opacity: .72; }
.moot-price-card strong { font-size: 28px; white-space: nowrap; }

.moot-errors {
    display: none;
    margin-top: 22px;
    padding: 13px 15px;
    border-radius: 9px;
    background: #fff1f0;
    color: var(--moot-danger);
    font-size: 14px;
    font-weight: 700;
}
.moot-errors.is-visible { display: block; }

.moot-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--moot-border);
}
.moot-spacer { flex: 1; }
.moot-button {
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 9px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.moot-button-primary {
    background: #C9A24D !important;
    background-color: #C9A24D !important;
    color: #FFFFFF !important;
    border-color: #C9A24D !important;
}
.moot-button-primary:hover,
.moot-button-primary:focus {
    background: #A98636 !important;
    background-color: #A98636 !important;
    color: #FFFFFF !important;
    border-color: #A98636 !important;
}
.moot-button-secondary {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #111111 !important;
    border: 1px solid var(--moot-border) !important;
    box-shadow: none !important;
}

@media (max-width: 720px) {
    .moot-wrap { margin: 18px auto; }
    .moot-card { padding: 24px 18px; border-radius: 14px; }
    .moot-col-8, .moot-col-6, .moot-col-4 { grid-column: span 12; }
    .moot-section-header { gap: 10px; }
    .moot-section-number { min-width: 38px; height: 38px; }
    .moot-section-header h3 { font-size: 20px; }
    .moot-person-card { padding: 18px 14px; }
    .moot-review-row { grid-template-columns: 1fr; gap: 2px; }
    .moot-price-card { align-items: flex-start; flex-direction: column; }
    .moot-actions { flex-wrap: wrap; }
    .moot-button { flex: 1 1 auto; }
}

.moot-button[hidden] { display: none !important; }

.moot-button-secondary:hover,
.moot-button-secondary:focus {
    background: #E8E8E8 !important;
    background-color: #E8E8E8 !important;
    color: #111111 !important;
    border-color: #BDBDBD !important;
}

.moot-phone-group {
    display: grid;
    grid-template-columns: minmax(145px, 1fr) minmax(180px, 1.25fr);
    gap: 10px;
}
.moot-phone-group select,
.moot-phone-group input {
    width: 100%;
}
.moot-field-error {
    display: none;
    margin-top: 7px;
    color: #F00404;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.moot-field-error.is-visible {
    display: block;
}

@media (max-width: 520px) {
    .moot-phone-group {
        grid-template-columns: 1fr;
    }
}

.moot-representative-phone {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--moot-border);
    border-radius: 10px;
    background: #FAFAFA;
}
.moot-representative-phone[hidden] {
    display: none !important;
}

.moot-submit-status {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 9px;
    background: #F7F5F0;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}
.moot-submit-status.is-visible {
    display: block;
}
.moot-button:disabled {
    opacity: .65;
    cursor: wait;
}


/* Ubigeo Perú dentro del formulario MOOT */
.moot-peru-location,
.moot-manual-location {
    grid-column: span 12;
}
.moot-peru-location[hidden],
.moot-manual-location[hidden] {
    display: none !important;
}
.moot-peru-location select:disabled {
    opacity: .65;
    cursor: wait;
}


/* País distinto de Perú: Ciudad y Estado / Provincia en una misma fila */
#institucion_manual_location {
    grid-column: span 12;
    width: 100%;
}
#institucion_manual_location > .moot-grid {
    width: 100%;
}
@media (min-width: 721px) {
    #institucion_manual_location .moot-field {
        grid-column: span 6;
    }
}


/* v0.4.2: asegura que el límite de entrenadores oculte el botón incluso
   si el tema sobrescribe el comportamiento nativo de [hidden]. */
#moot_add_coach[hidden],
#add_coach[hidden],
#agregar_entrenador[hidden],
.moot-add-coach[hidden],
[data-action="add-coach"][hidden] {
    display: none !important;
}
