/* ==========================================================================
   GIAO DIỆN FORM GLASSMORPHISM (CHUẨN FIGMA)
   ========================================================================== */

/* BỘ KHUNG TỔNG THỂ */
.ax-glass-form {
  background: linear-gradient(0deg,
      rgba(130, 134, 126, 0.54) 0%,
      rgba(130, 134, 126, 0.54) 46%,
      rgba(130, 134, 126, 0.54) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 50px 32px;
  width: 100%;
  max-width: 1138px;
  margin: auto;
  font-family: 'Montserrat', sans-serif;
  pointer-events: auto;
}

.ax-glass-form__title {
  color: #ffffff;
  font-size: 41px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 56px;
  line-height: 1;
}

/* LƯỚI GRID 2 CỘT */
.ax-glass-form__grid {
  display: grid;
  /* Ép cột trái có độ rộng ~362px đúng như Figma, cột phải chiếm phần còn lại */
  grid-template-columns: 362px 1fr;
  gap: 50px;
  margin-bottom: 56px;
}

/* ==========================================
   CỘT TRÁI: KHU VỰC NHẬP TEXT
   ========================================== */
.ax-glass-form__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ax-form__group label {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.ax-glass-form input[type='text'],
.ax-glass-form input[type='tel'],
.ax-glass-form textarea {
  width: 100%;
  min-height: 40px;
  background: rgba(0, 0, 0, 0.21);
  /* Mã màu từ Figma */
  border: none;
  color: #ffffff !important;
  padding: 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: 0.3s;
}

.ax-glass-form textarea {
  height: 145px;
  resize: none;
}

/* Tùy chỉnh chữ gợi ý (Placeholder) rõ nét, không bị mờ đục */
.ax-glass-form input::placeholder,
.ax-glass-form textarea::placeholder {
  color: rgba(255, 255, 255, 1) !important;
  opacity: 1 !important;
  font-weight: 300;
}

.ax-glass-form input::-webkit-input-placeholder,
.ax-glass-form textarea::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 1) !important;
  opacity: 1 !important;
  font-weight: 300;
}

.ax-glass-form input::-moz-placeholder,
.ax-glass-form textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 1) !important;
  opacity: 1 !important;
  font-weight: 300;
}

.ax-glass-form input:focus,
.ax-glass-form textarea:focus {
  background: rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================
   CỘT PHẢI: KHU VỰC RADIO BUTTON
   ========================================== */
.ax-glass-form__right {
  background: rgba(0, 0, 0, 0.21);
  /* Khối background bọc toàn bộ cột phải */
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ax-radio-main-title {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Ghi đè cấu trúc list của CF7 */
.ax-glass-form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 29px;
  /* Khoảng cách ngang dọc chuẩn Figma */
}

.ax-glass-form .wpcf7-list-item {
  margin: 0;
}

.ax-glass-form .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  line-height: 24px;
}

/* Tạo hình dáng nút Radio chuẩn UI/UX */
.ax-glass-form .wpcf7-list-item input[type='radio'] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  margin-right: 12px;
  margin-top: 4px;
  /* Căn chỉnh thẳng hàng với text */
  position: relative;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
  /* Chống bị méo hình khi text dài */
}

/* Trạng thái khi chọn Radio */
.ax-glass-form .wpcf7-list-item input[type='radio']:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
}

/* ==========================================
   NÚT SUBMIT & XỬ LÝ LỖI CF7
   ========================================== */
.ax-form__submit {
  background-color: #1f201e !important;
  color: #ffffff;
  border: none;
  padding: 13px;
  margin-bottom: 0;
  height: 46px;
  /* Chiều cao ~46px theo thiết kế */
  font-size: 18px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.ax-form__submit:hover {
  background-color: #333333;
}

/* Triệt tiêu các thẻ <p> và <br> gây rớt dòng do CF7 tự sinh ra */
.ax-glass-form p {
  margin-bottom: 0 !important;
}

.ax-glass-form br {
  display: none !important;
}

.ax-glass-form .wpcf7-form-control-wrap {
  display: block;
}

/* ==========================================
   HIỂN THỊ TRÊN ĐIỆN THOẠI
   ========================================== */
@media (max-width: 849px) {
  .ax-glass-form__grid {
    grid-template-columns: 1fr;
    /* Thu về 1 cột trên Mobile */
  }

  .ax-glass-form {
    padding: 30px 20px;
  }
}