:root {
  --primary-color: #a4957d; 
  --secondary-color: #fafafa;
  --background-color: #fff;
  --text-color: #222c36;
  --error-color: #d32f2f;
  --error-bg-color: #d32f2f1e;
  --asterisk-color: #d32f2f;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Estilos base para el formulario */
.contact-form {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(37,99,166,0.08);
  padding: 32px 24px;
  border: 1px solid var(--secondary-color);
}

/* Media queries para breakpoints específicos */
/* @media (max-width: 320px) {
  .contact-form { width: 98vw; padding: 16px 2px; }
  .form-group { min-width: 100%; }
}

@media (min-width: 321px) and (max-width: 374px) {
  .contact-form { width: 98vw; }
  .form-group { min-width: 100%; }
}

@media (min-width: 375px) and (max-width: 424px) {
  .contact-form { width: 97vw; }
  .form-group { min-width: 100%; }
}

@media (min-width: 425px) and (max-width: 767px) {
  .contact-form { width: 95vw; }
  .form-group { min-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-form { width: 90vw; max-width: 900px; }
  .form-group { min-width: 220px; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .contact-form { width: 80vw; max-width: 1100px; }
}

@media (min-width: 1440px) and (max-width: 2559px) {
  .contact-form { width: 70vw; max-width: 1300px; }
}

@media (min-width: 2560px) {
  .contact-form { width: 60vw; max-width: 1800px; }
} */

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  letter-spacing: 2px;
  color: var(--primary-color);
  font-size: 13px;
  line-height: 23px;
  font-weight: 600;
  margin-bottom: 5px;
  display: inline-block;
  text-transform: uppercase;
}

.asterisk {
  color: var(--asterisk-color);
  font-size: 1.1em;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 17px;
  line-height: 36px;
  height: 50px;
  background: var(--secondary-color);
  padding: 10px;
  color: var(--text-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.form-group textarea {
  min-height: 80px;
  height: auto;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  outline: none;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.checkbox-group label {
  font-size: 0.95rem;
  color: var(--primary-color);
}

.checkbox-group a {
  color: #c5b18f;
  text-decoration: underline;
}

/* Boton de Submit */
.btn-primary {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #c5b18f;
}

/* Boton Desactivado */
.btn-off {
  width: 100%;
  background-color: #cccccc;
  color: #666666;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1.1rem;
  cursor: not-allowed;
  transition: background 0.2s;
  margin-top: 10px;
}

#g-recaptcha-response {
  min-height: 50px;
}

#captcha-error {
  color: var(--error-color);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Mensajes de error para inputs */
.input-error-message {
  color: var(--error-color);
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 0;
  display: none;
  position: relative;
  right: 0;
  top: 0;
  padding-right: 0;
  z-index: 2;
  text-align: left;
  background: transparent;
}

.input-error-icon {
  position: absolute;
  right: 4px;
  top: 0px;
  width: 22px;
  height: 22px;
  display: none;
  z-index: 3;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><polygon points="11,2 21,20 1,20" fill="%23d32f2f"/><text x="11" y="18" text-anchor="middle" font-size="14" fill="white" font-family="Arial">!</text></svg>') no-repeat center center;
  background-size: contain;
}

/* Mostrar icono y mensaje cuando hay error */
.form-group.has-error .input-error-icon,
.form-group.has-error .input-error-message {
  margin-bottom: 0px !important; /* No jala esto*/
  display: block;
}

/* Borde rojo en el input cuando hay error */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error-color) !important;
  background: var(--error-bg-color) !important;
  margin-bottom: 0px !important; /* No jala esto*/
}

/* Mensaje de error debajo del input */
.input-error-message {
  color: var(--error-color);
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 0;
  display: none;
  position: relative;
  right: 0;
  top: 0;
  padding-right: 0;
  z-index: 2;
  text-align: left;
  background: transparent;
}

/* Mensaje de error para captcha */
#captcha-error {
  color: var(--error-color);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: none;
  text-align: right;
  padding-right: 32px;
}