/* ============================================================
   domain-checkout.css
   Estilos del bloque de dominio dentro de checkout.php
   Cargar después de checkout.css
   ============================================================ */

/* ── Sección dominio ───────────────────────────────────────── */
.domain-section {
  background: #f8faff;
  border: 1.5px solid #dde8f8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.domain-section-label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 14px !important;
}
.domain-section-label .fa-globe {
  color: #1a73e8;
  margin-right: 6px;
}

/* ── Radio opciones ────────────────────────────────────────── */
.domain-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.domain-radio-opt {
  display: flex !important;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid #d0daf0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.domain-radio-opt:has(input:checked) {
  border-color: #1a73e8;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 600;
}
.domain-radio-opt input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #1a73e8;
  flex-shrink: 0;
}

/* ── Paneles ───────────────────────────────────────────────── */
.domain-panel {
  margin-top: 4px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

/* ── Fila de búsqueda ──────────────────────────────────────── */
.domain-search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.domain-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1.5px solid #c8d4e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  min-width: 200px;
  transition: border-color .2s, box-shadow .2s;
}
.domain-input-wrap:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.domain-search-icon {
  color: #aaa;
  padding: 0 8px;
  font-size: 13px;
  flex-shrink: 0;
}
#domainSearchInput {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 10px 4px !important;
  font-size: 14px;
  color: #1a1a2e;
  font-weight: 600;
  min-width: 0;
  width: 100%;
  box-shadow: none !important;
}
#domainSearchInput:focus { outline: none; }
#domainTldSelect {
  border: none;
  border-left: 1.5px solid #e0e8f5;
  background: #f4f7fb;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
  height: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 70px;
  flex-shrink: 0;
  text-align: center;
}
#domainTldSelect:focus { outline: none; }

.btn-check-domain {
  padding: 0 14px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .2s;
  font-family: inherit;
  min-height: 44px;
  flex-shrink: 0;
}
.btn-check-domain:hover { background: #1558c0; }
.btn-check-domain:disabled {
  background: #9bb8e8;
  cursor: not-allowed;
}

/* ── Resultado ─────────────────────────────────────────────── */
.domain-result {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.domain-result.available {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.domain-result.unavailable {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  color: #e65100;
}
.domain-result.error {
  background: #fce4ec;
  border: 1px solid #f48fb1;
  color: #880e4f;
}
.domain-result.checking {
  background: #e8eaf6;
  border: 1px solid #9fa8da;
  color: #283593;
}

/* ── Selector de años ──────────────────────────────────────── */
.domain-years-block {
  margin-top: 14px;
  animation: fadeIn .2s ease;
}
.domain-years-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  margin-bottom: 10px;
}
.domain-years-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.domain-year-opt {
  flex: 1;
  min-width: 120px;
  cursor: pointer;
}
.domain-year-opt input[type="radio"] {
  display: none;
}
.year-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border: 2px solid #d0daf0;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, background .2s;
  gap: 4px;
}
.domain-year-opt:has(input:checked) .year-pill {
  border-color: #1a73e8;
  background: #e8f0fe;
}
.year-num {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}
.year-price {
  font-size: 18px;
  font-weight: 800;
  color: #1a73e8;
}

/* ── Nota informativa ──────────────────────────────────────── */
.domain-note {
  font-size: 11.5px;
  color: #888;
  margin: 12px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.domain-note .fa-circle-info { color: #1a73e8; margin-top: 1px; flex-shrink: 0; }