/* El Castañero — VendernosCastanas v4 */

:root {
  --cast:   #6b3f1a;
  --amber:  #c8943a;
  --border: #ccc;
  --text:   #1a1a1a;
  --muted:  #666;
  --ok:     #2e7d32;
}

body {
  background: #f2f2f2;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
}

.formulario {
  width: min(760px, 94%);
  margin: 2rem auto 4rem;
  background: #fff;
  border-top: 4px solid var(--amber);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0e0e0;
}

.form-header::after { display: none; }

.form-header .main-title {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--cast);
  margin: 0 0 0.45rem;
  line-height: 1.2;
}

.form-header .main-texto {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.form-body { padding: 0; }

/* ── Campos ── */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.96rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
  font-family: inherit;
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }

.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Teléfono ── */
.phone-input-container { display: flex; gap: 0.4rem; }
.phone-input-container select { width: 84px; flex-shrink: 0; }
.phone-input-container input  { flex: 1; width: auto; }

/* ── Radio ── */
.question { margin-bottom: 1.2rem; }

.question > p,
.question > b > p {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.45rem;
  text-transform: none;
  letter-spacing: 0;
}

.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96rem;
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #bbb;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: inset 0 0 0 3px #fff;
}

.radio-label input[type="radio"]:hover {
  border-color: var(--amber);
}

/* ── Botón ── */
.submit-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 2.2rem;
  background: var(--cast);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.submit-btn:hover { background: #4d2c0d; }
.submit-btn:disabled { background: #a07050; cursor: not-allowed; }

#loading-message {
  display: none;
  margin-top: 0.7rem;
  font-size: 0.87rem;
  color: var(--ok);
  font-weight: 500;
}

.req { color: #c0392b; font-weight: 700; }

@media (max-width: 480px) {
  .phone-input-container { flex-direction: column; }
  .phone-input-container select { width: 100%; }
}
