form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 17.8rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  transition: height 0.4s ease;
}

.close-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.back-icon {
  width: 0.37rem;
  height: 0.75rem;
  filter: brightness(0) invert(1);
}
.form-content {
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-title {
  color: var(--white);
  font-size: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-notice {
  color: var(--white);
  font-size: 0.875rem;
  margin: 0;
  text-align: left;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  height: 3rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 1.5rem 0 0.5rem;
  line-height: 100%;
}

.form-group label {
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  color: var(--white);
  opacity: 0.7;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease-out;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.8);
  transform-origin: left top;
  opacity: 1;
}

.form-group input::placeholder {
  color: transparent;
}

.validation-message {
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #D4D4D4;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
  width: 100%;
  pointer-events: none;
}


.form-group input:focus:invalid ~ .validation-message,
.form-group input[data-empty="true"] ~ .validation-message {
  opacity: 1;
  transform: translateY(0);
}

/* Validaciones en el hero */
.in-hero .form-group input:focus:invalid,
.in-hero .form-group input[data-empty="true"] {
  border-bottom-color: #D4D4D4;
 
}

.in-hero .validation-message {
  color: #dd0000;
}

.in-hero .form-group input:focus:invalid ~ .validation-message,
.in-hero .form-group input[data-empty="true"] ~ .validation-message {
  color: #dd0000;
}

/* Estilos para el formulario en el hero */
.in-hero .form-group input,
.in-hero .form-group label,
.in-hero .form-title,
.in-hero .form-notice,
.in-hero .close-form {
  color: var(--blue);
}

.in-hero .form-group input {
  border-bottom-color: var(--blue);
}

.in-hero .form-group label {
  color: var(--blue);
  opacity: 0.8;
}

.in-hero .form-group input::placeholder {
  color: transparent;
}

.in-hero .back-icon {
  filter: none;
}

.form-group input:invalid:focus + .validation-message,
.form-group input[data-empty="true"] + .validation-message {
  opacity: 1;
  transform: translateY(0);
}

.form-group input[data-empty="true"] {
  border-bottom-color: #D4D4D4;
}

/* Cambiar color del borde cuando hay error en formulario principal */
.form-group input:focus:invalid,
.form-group input[data-empty="true"] {
  border-bottom-color: #D4D4D4;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--white);
  margin: 1rem 0;
}

.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--white);
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
  margin-top: 0.125rem;
  padding: 0.5rem;
}

.form-check input[type="checkbox"]:checked {
  background-color: transparent;
}

.form-check input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
}

.form-check label {
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.form-check label a {
  color: var(--white);
  text-decoration: underline;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.submit-btn {
  background: var(--white);
  color: var(--blue);
  border: none;
  padding: 0.5rem;
  border-radius: 2.87rem;
  font-weight: 600;
  cursor: pointer;
}

.date-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2.87rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.button-icon {
  width: 1rem;
  object-fit: contain;
}

.feedback-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 2.5rem;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  transform-origin: left center;
}
.feedback-text {
  font-size: 1rem;
  font-weight: 600;
  span {
    font-weight: 400;
  }
}
.feedback-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2.43rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 4rem;
  min-height: 2.18rem;
}

/* feedback states*/
.form-submitted .form-content {
  opacity: 0;
  pointer-events: none;
}
.form-submitted .form-title{
display: none !important;
}

.form-submitted .feedback-container {
  opacity: 1;
  transform: scale(1) translateY(0);
  display: flex;
  pointer-events: auto;
}
.form-submitted .form-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 11.56rem;
}

/* feedback styles in hero */
.in-hero .feedback-container {
  color: var(--blue);
}

.in-hero .feedback-text {
  color: var(--black);
}

.in-hero .feedback-btn {
  color: var(--blue);
  border-color: var(--blue);
}

.in-hero .feedback-btn:hover {
  background: rgba(var(--blue-rgb), 0.1);
}

/* feedback states in hero */
.in-hero.form-submitted .feedback-container {
  background-color: var(--white);
}

.in-hero.form-submitted .feedback-text {
  color: var(--blue);
}

.in-hero.form-submitted .feedback-btn {
  border: 2px solid var(--blue);
  color: var(--blue);
}

/* ==========================
   RECAPTCHA STYLES
========================== */
.recaptcha-container {
  display: flex;
  min-height: 78px;
}


/* for small forms */
@media (max-width: 400px) {
  .g-recaptcha {
    transform: scale(0.8);
  }
}

.submit-btn:disabled {
  opacity: 60%;
  cursor: not-allowed;
}

/* Estilos de foco visible para accesibilidad */
.submit-btn:focus,
.date-btn:focus,
.form-group input:focus,
.form-check input[type="checkbox"]:focus,
.form-check label a:focus,
.close-form:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* Foco visible para formularios en hero */
.in-hero .submit-btn:focus,
.in-hero .date-btn:focus,
.in-hero .form-group input:focus,
.in-hero .form-check input[type="checkbox"]:focus,
.in-hero .form-check label a:focus {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  background-color: rgba(67, 50, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* ==========================
   FORM IN HERO STYLES
========================== */

/* General form styles in hero */
.in-hero .contact-form {
  color: var(--blue);
  background-color: var(--white);
}

.in-hero .form-group input,
.in-hero .form-group label,
.in-hero .form-title,
.in-hero .form-notice,
.in-hero .close-form {
  color: var(--blue);
}

.in-hero .form-group input {
  border-bottom-color: var(--blue);
}

.in-hero .form-group label {
  color: var(--blue);
}

.in-hero .back-icon {
  filter: none;
}

/* checkbox styles in el hero */
.in-hero .form-check {
  color: var(--blue);
}

.in-hero .form-check input[type="checkbox"] {
  border-color: var(--blue);
}
.in-hero .form-check input[type="checkbox"]:checked::before {
  color: var(--blue);
}

.in-hero .form-check label a {
  color: var(--blue);
}

.in-hero .feedback-btn {
  color: var(--blue);
  border-color: var(--blue);
}

/* Btn styles in hero */
.in-hero .submit-btn {
  background-color: var(--blue);
  color: var(--white);
}

.in-hero .date-btn {
  color: var(--blue);
  border-color: var(--blue);
}

.in-hero .button-icon {
  filter: none;
}

/* reCAPTCHA in hero */
.in-hero .recaptcha-container {
  filter: contrast(1.2) brightness(0.9);
}
