/**
 * Kottakkal Theme - Contact Form 7 Botanical Luxury Styling
 * Form Integration: Contact Form 7 & Native Booking
 */

.kottakkal-cf7-wrap,
.kottakkal-native-form,
.wpcf7 form {
  width: 100%;
}

.flds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.fld {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fld.full {
  grid-column: 1 / -1;
}

.fld label,
.wpcf7 form label {
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading);
  display: block;
}

.req {
  color: var(--gold-ink);
}

.fld input,
.fld select,
.fld textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font: 400 1.05rem/1.4 var(--sans);
  color: var(--fg);
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.fld select,
.wpcf7 select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 12px) 24px, calc(100% - 7px) 24px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.fld select option,
.wpcf7 select option {
  background: var(--surface);
  color: var(--fg);
}

.fld textarea,
.wpcf7 textarea {
  min-height: 96px;
  resize: vertical;
}

.fld input:focus,
.fld select:focus,
.fld textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

/* Consent Checkbox */
.consent,
.wpcf7-acceptance label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.88rem !important;
  color: var(--fg-2) !important;
  line-height: 1.55 !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  margin-top: 10px;
}

.consent input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 3px 0 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--accent);
}

/* CF7 Validation Notices */
.wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  display: block;
}

.wpcf7-not-valid {
  border-bottom-color: var(--error) !important;
}

.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 16px 20px !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 2px !important;
  font-size: 0.94rem !important;
  background: var(--bg);
}

.wpcf7-mail-sent-ok {
  border-color: var(--forest) !important;
  color: var(--botanical) !important;
  background: var(--surface-2) !important;
}

.wpcf7-validation-errors {
  border-color: var(--error) !important;
  color: var(--error) !important;
}

.wpcf7-spinner {
  margin-left: 14px !important;
}

@media (max-width: 600px) {
  .flds {
    grid-template-columns: minmax(0, 1fr);
  }
}
