/* ───────────────────────────────────────────────────────
   City Storage – Formulario de Cotización v2.1.0
──────────────────────────────────────────────────────── */

/* ── Botón CTA "Solicitar Cotización" ── */
#cs-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 32px 20px 16px;
  text-align: center;
}

#cs-cta-btn {
  background-color: var(--e-global-color-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px !important;
  padding: 14px 20px;
  line-height: 32px;
  font-size: 18px;
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

#cs-cta-btn:hover:not(:disabled) {
  background-color: #009adb !important;
}

#cs-cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#cs-cta-btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Overlay del modal del formulario ── */
#cs-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 20px;
  overflow-y: auto;
}

#cs-form-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  animation: csModalIn 0.22s ease;
}

@keyframes csModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

#cs-form-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #001641;
  line-height: 1;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

#cs-form-modal-close:hover {
  background: #f0ece3;
}

/* ── Wrapper del formulario (dentro del modal) ── */
#cs-cotizar-wrapper {
  font-family: 'Rubik', sans-serif;
  padding: 48px 40px 40px;
}

@media (max-width: 600px) {
  #cs-cotizar-wrapper {
    padding: 48px 20px 32px;
  }
}

#cs-cotizar-wrapper h2.cs-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #001641;
  margin: 0 0 8px;
  line-height: 1.2;
}

#cs-cotizar-wrapper p.cs-form-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0 0 32px;
  letter-spacing: -0.1px;
}

/* ── Formulario ── */
#cs-cotizar-form {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Grid de 2 columnas */
.cs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

@media (max-width: 600px) {
  .cs-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Grupos de campo */
.cs-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-field-group.cs-full-width {
  grid-column: 1 / -1;
}

/* Labels */
.cs-field-group label {
  font-size: 13px;
  font-weight: 600;
  color: #001641;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Inputs */
.cs-field-group input[type="text"],
.cs-field-group input[type="email"],
.cs-field-group input[type="tel"],
.cs-field-group input[type="date"] {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d0c9bb;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Rubik', sans-serif;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cs-field-group input:focus {
  border-color: #009ADA;
  box-shadow: 0 0 0 3px rgba(0, 154, 218, 0.15);
  outline: none;
}

.cs-field-group input::placeholder {
  color: #aaa;
}

/* Asterisco requerido */
.cs-required {
  color: #F0533F;
  margin-left: 2px;
}

/* Separador de sección */
.cs-section-divider {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e8e0d0;
}

.cs-section-divider span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #009ADA;
}

/* Mensaje de error */
#cs-form-error {
  display: none;
  grid-column: 1 / -1;
  background: #fff0ee;
  border: 1px solid #f8c4bb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #c0392b;
}

/* Fila botón + nota de privacidad */
.cs-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 16px;
}

#cs-cotizar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--e-global-color-primary);
  color: #fff;
  border: none;
  border-radius: 10px !important;
  padding: 14px 36px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 154, 218, 0.3);
  letter-spacing: -0.2px;
}

#cs-cotizar-btn:hover:not(:disabled) {
  background: #007bb5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 154, 218, 0.4);
}

#cs-cotizar-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Nota de privacidad */
.cs-privacy-note {
  font-size: 12px;
  color: #888;
  margin: 0;
  text-align: left;
  line-height: 1.6;
}

.cs-privacy-note a {
  color: #009ADA;
  text-decoration: none;
}
