/* ==========================================================
   FORMULARIO
   ========================================================== */

.nd-sri-replica-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 950px;
  margin: 40px auto;
  color: #3b4559;
  background: transparent;
}

.nd-sri-replica-title {
  font-size: 34px;
  font-weight: 700;
  color: #3b4559;
  margin-top: 0;
  margin-bottom: 12px;
}

.nd-sri-replica-desc {
  font-size: 16px;
  color: #555e6f;
  margin-bottom: 35px;
  line-height: 1.6;
}

.nd-sri-replica-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
}

.nd-sri-replica-tab {
  width: 220px;
  height: 48px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.nd-sri-replica-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.nd-sri-replica-tab-orange {
  background-color: #FA9E1B;
  color: #1a3c6d;
}

.nd-sri-replica-tab-blue {
  background-color: #124388;
  color: #ffffff;
}

.nd-sri-replica-tab[aria-disabled="true"] {
  opacity: 1;
}

.nd-sri-replica-card {
  border: 1px solid #D6D6D6;
  background: #ffffff;
  padding: 40px 50px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.nd-sri-replica-card-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #3b4559;
  margin-top: 0;
  margin-bottom: 30px;
}

.nd-sri-replica-form-group {
  margin-bottom: 12px;
}

.nd-sri-replica-label {
  display: block;
  font-size: 16px;
  color: #555e6f;
  margin-bottom: 12px;
}

.nd-sri-replica-input {
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #a0a0a0;
  border-radius: 2px;
  box-sizing: border-box;
  outline: none;
  transition: border 0.3s ease;
  background: #fff;
}

.nd-sri-replica-input::placeholder {
  font-style: italic;
  color: #888888;
}

.nd-sri-replica-input:focus {
  border-color: #124388;
}

.nd-sri-replica-help {
  margin: 10px 0 0;
  font-size: 12px;
  color: #7a8393;
}

.nd-sri-replica-btn-container {
  text-align: center;
  margin: 35px 0 45px;
}

.nd-sri-replica-btn-submit {
  min-width: 180px;
  padding: 12px 45px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #a0a0a0;
  border-radius: 4px;
  cursor: not-allowed;
  transition: all 0.25s ease;
  box-shadow: none;
}

.nd-sri-replica-btn-submit.active {
  background-color: #124388;
  color: #ffffff;
  border-color: #124388;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nd-sri-replica-btn-submit.active:hover {
  background-color: #0d3266;
}

.nd-sri-replica-btn-submit.loading {
  opacity: .85;
  cursor: wait;
}

.nd-sri-replica-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.nd-sri-replica-guide-text {
  font-size: 17px;
  font-weight: 700;
  color: #3b4559;
  line-height: 1.1;
}

/* ==========================================================
   FEEDBACK / ALERTAS / LOADING
   ========================================================== */

.nd-sri-replica-feedback {
  margin-top: 26px;
}

.nd-sri-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.4;
}

.nd-sri-alert.error {
  background: #fff2f2;
  border: 1px solid #e7b5b5;
  color: #9b2c2c;
}

.nd-sri-alert.success {
  background: #eefaf2;
  border: 1px solid #b7e3c4;
  color: #24643b;
}

.nd-sri-alert.info {
  background: #f2f7ff;
  border: 1px solid #bfd0ef;
  color: #224f92;
}

.nd-sri-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 6px;
  color: #355e9f;
  font-weight: 600;
}

.nd-sri-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #c8d6f2;
  border-top-color: #124388;
  border-radius: 50%;
  animation: ndsri-spin .8s linear infinite;
}

@keyframes ndsri-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   RESULTADOS 
   ========================================================== */

.nd-sri-replica-results {
  margin-top: 0;
}

.nd-sri-success-banner {
  background: linear-gradient(135deg, #1fbf63 0%, #0e9f6e 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(8, 118, 79, 0.16);
  margin-bottom: 24px;
}

.nd-sri-success-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nd-sri-success-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.nd-sri-success-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.nd-sri-success-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

.nd-sri-success-right {
  text-align: right;
  min-width: 180px;
}

.nd-sri-success-right-label {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  margin-bottom: 2px;
}

.nd-sri-success-right-date {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.nd-sri-section {
  margin-top: 22px;
  border: 1px solid #d7dde6;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.nd-sri-section-head {
  background: #eef2f8;
  border-bottom: 1px solid #d7dde6;
  padding: 16px 24px;
}

.nd-sri-section-head h3 {
  margin: 0;
  color: #273245;
  font-size: 18px;
  font-weight: 800;
}

.nd-sri-section-body {
  padding: 20px 24px;
}

.nd-sri-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}

.nd-sri-item {
  min-width: 0;
}

.nd-sri-item.nd-sri-item-full {
  grid-column: 1 / -1;
}

.nd-sri-item-label {
  font-size: 13px;
  line-height: 1.2;
  color: #4f5b6d;
  font-weight: 700;
  margin-bottom: 6px;
}

.nd-sri-item-value {
  font-size: 15px;
  line-height: 1.35;
  color: #1f2937;
  font-weight: 600;
  word-break: break-word;
}

.nd-sri-item-value.is-empty {
  color: #8d99aa;
  font-style: italic;
  font-weight: 500;
}

/* Representantes legales */
.nd-sri-reps-wrap {
  display: grid;
  gap: 14px;
}

.nd-sri-rep-card {
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  background: #f8fafc;
  padding: 16px 18px;
}

.nd-sri-rep-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #4b5563;
  margin-bottom: 12px;
}

.nd-sri-rep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.nd-sri-rep-grid .nd-sri-item:last-child {
  grid-column: 1 / -1;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
  .nd-sri-success-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nd-sri-success-right {
    text-align: left;
    min-width: 0;
  }
}

@media (max-width: 650px) {
  .nd-sri-replica-tabs {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nd-sri-replica-tab {
    width: 100%;
    max-width: 300px;
  }

  .nd-sri-replica-card {
    padding: 25px 20px;
  }

  .nd-sri-section-head,
  .nd-sri-section-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nd-sri-section-grid,
  .nd-sri-rep-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nd-sri-item.nd-sri-item-full,
  .nd-sri-rep-grid .nd-sri-item:last-child {
    grid-column: auto;
  }

  .nd-sri-success-title {
    font-size: 19px;
  }
}  