/* =============================================
   CROWN GEM — CONTACT US PAGE
   Hero · Contact panel · Info strip · B2B form · Map
   Depends on: global.css (variables, .container, .section-label)
   ============================================= */

/* ============================================================
   HERO BANNER
   ============================================================ */
.contact-hero {
  position: relative;
  height: 420px;
  background: url('../img/19.jpg') center top / cover no-repeat;
  display: flex;
  align-items: flex-end;
  /* Fallback colour if image not yet available */
  background-color: var(--navy);
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9, 18, 60, 0.72) 0%,
    rgba(9, 18, 60, 0.30) 55%,
    rgba(9, 18, 60, 0.05) 100%
  );
}

.contact-hero_inner {
  position: relative;
  z-index: 1;
  padding: 0 0 52px 80px;
}

.contact-hero_inner .section-label {
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-hero_title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
}

/* ============================================================
   CONTACT PANEL  (image card + general form)
   ============================================================ */
.contact-panel-section {
  background: var(--white);
  padding: 64px 0 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

/* ---- Left: image + overlay text ---- */
.contact-panel_image-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.contact-panel_image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-panel_image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 18, 60, 0.80) 0%,
    rgba(9, 18, 60, 0.45) 55%,
    rgba(9, 18, 60, 0.10) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
}

.contact-panel_image-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.contact-panel_image-text {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.80);
}

/* ---- Right: general contact form ---- */
.contact-panel_form-card {
  padding: 42px 40px;
  background: var(--white);
}

/* Form grid rows */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-group--full {
  margin-bottom: 20px;
}

.cf-group label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
}

.required {
  color: #C0392B;
}

/* Shared input / select / textarea */
.cf-group input,
.cf-group textarea,
.cf-select-wrap select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
  border: 1px solid var(--border);
  background: var(--off-white);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--transition);
}

.cf-group input::placeholder,
.cf-group textarea::placeholder {
  color: #A8A8A8;
}

.cf-group input:focus,
.cf-group textarea:focus,
.cf-select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
}

.cf-group textarea {
  resize: vertical;
  min-height: 120px;
}

.cf-select-wrap {
  position: relative;
}

.cf-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  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 1L6 6L11 1' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--off-white);
  cursor: pointer;
}

.cf-submit-btn {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cf-submit-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* ============================================================
   INFO CARDS STRIP
   ============================================================ */
.contact-info-strip {
  background: var(--white);
  padding: 40px 0 64px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 32px;
}

.contact-info-card--mid {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.contact-info-card_icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-card_label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.contact-info-card_value {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

/* ============================================================
   B2B INQUIRY SECTION
   ============================================================ */
.b2b-section {
  background: var(--white);
  padding: 20px 0 100px;
}

.b2b-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.b2b-heading {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.b2b-subtext {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* B2B form field rows */
.b2b-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.b2b-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-group--full {
  margin-bottom: 20px;
}

.b2b-group label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
}

.b2b-group input,
.b2b-group textarea,
.b2b-select-wrap select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--transition);
}

.b2b-group input::placeholder,
.b2b-group textarea::placeholder {
  color: #A8A8A8;
}

.b2b-group input:focus,
.b2b-group textarea:focus,
.b2b-select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
}

.b2b-group textarea {
  resize: vertical;
  min-height: 130px;
}

.b2b-select-wrap {
  position: relative;
}

.b2b-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  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 1L6 6L11 1' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--white);
  cursor: pointer;
}

.b2b-submit-btn {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.b2b-submit-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* ---- Map column ---- */
.b2b-col--map {
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

.b2b-col--map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .b2b-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .b2b-col--map {
    position: static;
    height: 400px;
  }
}

@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .contact-panel_image-card {
    min-height: 280px;
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-card--mid {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .contact-hero_inner {
    padding: 0 20px 36px;
  }
  .cf-row,
  .b2b-row {
    grid-template-columns: 1fr;
  }
  .contact-panel_form-card {
    padding: 30px 22px;
  }
  .b2b-heading {
    font-size: 34px;
  }
  .b2b-col--map {
    height: 300px;
  }
}