/* =========================================================
   CONTACT PAGE LAYOUT
   ========================================================= */

.contact-wrap {
  display: grid;
  gap: 28px;
  align-items: flex-start;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .contact-wrap {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.5fr);
  }
}

/* Shared card styling */
.contact-wrap .card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* =========================================================
   LEFT COLUMN: CONTACT INFO
   ========================================================= */

.contact-info h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #183B66;
}

.info-block {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.info-block .label {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.info-block a {
  color: #183B66;
  text-decoration: none;
}

.info-block a:hover {
  text-decoration: underline;
}

/* Social icons */
.social {
  margin-top: 1.25rem;
}

.social .label {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  margin-right: 6px;
  color: #183B66;
}

.social a:hover {
  background: #f3f4f6;
}

/* =========================================================
   RIGHT COLUMN: FORM (MATCHES REQUEST-SAMPLE STYLE)
   ========================================================= */

.contact-form.card {
  background: #f3f7ff;       /* light blue card like request-sample */
  border-color: #d7e3ff;
}

/* Title + subtitle like request-sample */
.contact-form .form-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-align: center;
  color: #F39200;
}

.contact-form .form-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 14px;
}

/* Status messages */
.form-status.success {
  background: #effaf3;
  border: 1px solid #c5e7d0;
  color: #1b6e36;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.form-status.error {
  background: #fef3f2;
  border: 1px solid #fda29b;
  color: #b42318;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

/* Grid + fields — same pattern as request-sample */
.contact-form .grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
}

.contact-form .field--full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: #1f2a44;
}

.req {
  color: #e74c3c;
  margin-left: 2px;
}

/* Inputs / textarea */
.contact-form .field input[type="text"],
.contact-form .field input[type="email"],
.contact-form .field input[type="tel"],
.contact-form .field textarea,
.contact-form .field .iti input[type="tel"] {
  border: 1px solid #dfe5f1;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.7rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus,
.contact-form .field .iti input[type="tel"]:focus {
  border-color: #183B66;
  box-shadow: 0 0 0 3px rgba(24, 59, 102, 0.12);
}

.contact-form .field textarea {
  resize: vertical;
}

/* Error text under individual fields (if you ever add) */
.contact-form .error {
  color: #b42318;
  font-size: 0.7rem;
  margin-top: 6px;
}

/* intl-tel-input sizing */
.iti {
  width: 100%;
}

#phone {
  width: 100%;
}

.iti__selected-dial-code {
  font-weight: 600;
}

/* reCAPTCHA row */
.recaptcha-wrap {
  display: flex;
  justify-content: flex-start;
}

/* Actions & buttons (like request-sample) */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.btn {
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.8rem;
}

.btn--accent {
  background: #e58941;
  color: #fff;
  border: none;
}

.btn--accent:hover {
  filter: brightness(0.95);
}

.btn--outline {
  background: #f7f9fc;
  color: #183B66;
  border: 1px solid #dfe5f1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-form .grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap .card {
    padding: 16px;
  }

  .actions {
    justify-content: center;
  }
}


/* Mobile: show form first, then contact details */
@media (max-width: 768px) {
  .contact-wrap {
    display: flex;          /* override desktop grid */
    flex-direction: column;
    gap: 20px;
  }

  .contact-form {
    order: 1;               /* form comes first */
  }

  .contact-info {
    order: 2;               /* info card comes after */
  }
}
