/* =========================
   IB FORM — unified with MPS
   ========================= */

/* Wrapper */
.ib-form-wrapper {
    max-width: 780px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Main form card */
.ib-form {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    animation: mpsFadeIn .35s ease forwards;
}

/* Section title */
.ib-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 16px;
    color: #0f1724;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(15,23,36,0.08);
}

/* Grid layout */
.ib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* Field wrapper */
.ib-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Full width field */
.ib-field-full {
    grid-column: 1 / -1;
}

/* Labels */
.ib-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* Inputs */
.ib-input,
.ib-select,
.ib-textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,36,0.12);
    background: #fbfbfd;
    font-size: 15px;
    color: #0f1724;
    transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Focus state */
.ib-input:focus,
.ib-select:focus,
.ib-textarea:focus {
    outline: none;
    border-color: var(--accent, #3b82f6);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* Textarea */
.ib-textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

/* Submit area */
.ib-submit-wrap {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Primary button */
.ib-btn-primary {
    background: var(--accent, #3b82f6);
    border: none;
    color: #ffffff;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Button hover / focus */
.ib-btn-primary:hover,
.ib-btn-primary:focus {
    background: #2563eb;
    box-shadow: 0 6px 18px rgba(37,99,235,0.25);
    transform: translateY(-1px);
}

/* Response text */
.ib-response {
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   IB FORM — inline validation
   ========================= */

/* Error state */
.ib-field.has-error .ib-input,
.ib-field.has-error .ib-select,
.ib-field.has-error .ib-textarea {
    border-color: #ef4444;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* Error message */
.ib-error-msg {
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
    line-height: 1.3;
}

/* Success (optional, future-proof) */
.ib-field.is-valid .ib-input,
.ib-field.is-valid .ib-select,
.ib-field.is-valid .ib-textarea {
    border-color: #22c55e;
}
/* Wizard */
.ib-step { display:none; }
.ib-step.active { display:block; }

.ib-progress {
  margin-bottom:20px;
}
.ib-progress-bar {
  height:6px;
  background:var(--accent,#3b82f6);
  border-radius:6px;
  transition:width .3s ease;
}
.ib-progress-text {
  font-size:13px;
  color:#6b7280;
  margin-top:6px;
  display:block;
}

.ib-wizard-nav {
  margin-top:30px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.ib-btn-secondary {
  background:#f3f4f6;
  border:none;
  padding:12px 20px;
  border-radius:12px;
  cursor:pointer;
}

.hidden { display:none; }


/* Mobile tweaks */
@media (max-width: 640px) {
    .ib-form {
        padding: 18px;
    }

    .ib-section-title {
        font-size: 17px;
    }

    .ib-submit-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .ib-btn-primary {
        width: 100%;
        text-align: center;
    }
}



/**
DATOS ENTREVISTA EXISTENTE
**/
/* ------------------------
   Estilos display-only
------------------------ */
.ib-display-value {
    padding: 10px 12px;
    background: #fbfbfd;
    border-radius: 10px;
    border: 1px solid rgba(15,23,36,0.12);
    font-size: 15px;
    color: #0f1724;
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: break-word;
}

/* Ajustes mobile-first */
@media (max-width:640px){
    .ib-form {
        padding: 16px;
    }
    .ib-section-title {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .ib-display-value {
        font-size: 14px;
        padding: 8px 10px;
    }
}