/* ── Iyanuade Contact Form Styles ──────────────────────────── */
.iac-form-wrap { width: 100%; }

/* ── Form layout ───────────────────────────────────────────── */
.iac-form { display: flex; flex-direction: column; gap: 1.25rem; }

.iac-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

.iac-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.iac-field { display: flex; flex-direction: column; gap: 0.35rem; }

.iac-field label {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2C2320;
}

.iac-req { color: #C9975A; }

.iac-field input,
.iac-field textarea,
.iac-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #E8DADA;
  border-radius: 8px;
  background: #FFFDF9;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #2C2320;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.iac-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6360' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.iac-field input:focus,
.iac-field textarea:focus,
.iac-field select:focus {
  outline: none;
  border-color: #6B2D3E;
  box-shadow: 0 0 0 3px rgba(107, 45, 62, 0.1);
  background: #fff;
}

.iac-field input.iac-invalid,
.iac-field textarea.iac-invalid {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.iac-field textarea { resize: vertical; min-height: 140px; }

.iac-field-error {
  font-size: 0.75rem;
  color: #c62828;
  font-family: 'Lato', sans-serif;
  min-height: 1em;
}

/* ── Submit button ─────────────────────────────────────────── */
.iac-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: #3D1A24;
  color: #FAF6F0;
  border: none;
  border-radius: 100px;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.iac-submit:hover:not(:disabled) {
  background: #6B2D3E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 26, 36, 0.25);
}

.iac-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Spinner ───────────────────────────────────────────────── */
.iac-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(250, 246, 240, 0.4);
  border-top-color: #FAF6F0;
  border-radius: 50%;
  animation: iac-spin 0.7s linear infinite;
}

@keyframes iac-spin {
  to { transform: rotate(360deg); }
}

/* ── Success message ───────────────────────────────────────── */
.iac-success {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #F5E6E8, #FAF6F0);
  border-radius: 12px;
  border: 1px solid #E8DADA;
}

.iac-success__icon {
  font-size: 3rem;
  color: #C9975A;
  margin-bottom: 1rem;
  animation: iac-pop 0.5s ease;
}

@keyframes iac-pop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.iac-success h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  color: #3D1A24;
  margin: 0 0 0.75rem;
}

.iac-success p {
  color: #7A6360;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Error message ─────────────────────────────────────────── */
.iac-error-msg {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.iac-error-msg p {
  color: #c62828;
  font-size: 0.875rem;
  margin: 0;
}

.iac-error-msg a { color: #6B2D3E; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
  .iac-row { grid-template-columns: 1fr; }
}
