/* ============================================================
   contact.css — Contact page styles
   ============================================================ */

/* ── PAGE HERO ──
   IMAGE: images/contact-hero.jpg → search "logistics office professional"
── */
.page-hero.contact-hero {
  background-image: url('https://res.cloudinary.com/dwaxgussx/image/upload/v1773956838/contact-hero_jllhvi.avif');
  min-height: 380px;
  display: flex;
  align-items: center;
}

/* ── CONTACT MAIN LAYOUT ── */
.contact-main {
  background: var(--off-white);
  padding: 100px 0;
}

.contact-main__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

/* ── FORM WRAPPER ── */
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.form-card > p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 40px;
  line-height: 1.75;
}

/* The actual form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Two fields side by side */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Field group */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Label */
.field label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-700);
}

.field label .req {
  color: var(--orange);
  margin-left: 3px;
}

/* Inputs, selects, textarea */
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--gray-300);
}

/* Select dropdown arrow */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23807870'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Validation error */
.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  display: none;
}

.field.error .field-error { display: block; }

.field.error input,
.field.error select,
.field.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* Submit button */
.form-submit-btn {
  width: 100%;
  padding: 17px;
  font-size: 0.88rem;
  letter-spacing: 2.5px;
  margin-top: 8px;
  justify-content: center;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.visible { display: block; }

.form-success__check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(74,222,128,0.12);
  border: 2px solid rgba(74,222,128,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-success__check svg {
  width: 32px;
  height: 32px;
  fill: #4ade80;
}

.form-success h3 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ── CONTACT INFO SIDEBAR ── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Info card */
.info-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 26px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  border-left-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.info-card__icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--orange);
}

.info-card__label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 5px;
}

.info-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

.info-card__value a {
  color: var(--navy);
  transition: color 0.2s;
}

.info-card__value a:hover { color: var(--orange); }

/* Office hours card */
.hours-card {
  background: var(--navy);
  border-radius: var(--r-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.hours-card__title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}

.hours-row:last-child { border-bottom: none; }

.hours-row__day { color: rgba(255,255,255,0.55); }

.hours-row__time {
  color: var(--white);
  font-weight: 600;
}

.hours-row__time.closed { color: var(--gray-700); font-weight: 400; }

/* ── MAP SECTION ── */
.contact-map {
  background: var(--white);
  padding: 0;
}

.map-wrap {
  width: 100%;
  height: 500px;
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Map overlay label */
.map-label {
  position: absolute;
  top: 32px;
  left: 32px;
  background: var(--navy);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.map-label svg {
  width: 20px;
  height: 20px;
  fill: var(--orange);
  flex-shrink: 0;
}

.map-label p {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-main__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .form-card { padding: 36px 24px; }
  .form-row  { grid-template-columns: 1fr; }
  .map-wrap  { height: 360px; }
}
