/* ============================================================
   RR GROUP – contact.css
   Page-specific styles for Contact Us page.
   Base styles (navbar, footer, utilities) come from styles.css
   ============================================================ */

/* ============================================================
   HERO BANNER
   ============================================================ */
.contact-hero {
  position: relative;
  margin-top: 147px; /* top-strip (49px) + navbar (98px) */
  height: 380px;
  overflow: hidden;
  background: #1B3278;
}

.contact-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 60, 0.15) 0%,
    rgba(10, 20, 60, 0.05) 50%,
    rgba(10, 20, 60, 0.2) 100%
  );
}

/* ============================================================
   BUSINESS QUOTE SECTION
   ============================================================ */
.bq-section {
  background: #EAEBEC;
  padding: 64px 0 56px;
}

.bq-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header row: line — title — open-quote — short line */
.bq-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.bq-line-left  { flex: 1;      height: 2px; background: var(--navy); }
.bq-line-right { flex: 0 0 60px; height: 2px; background: var(--navy); }

.bq-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.bq-open-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--navy);
  margin-top: -16px;
  flex-shrink: 0;
}

/* Quote body with side brackets */
.bq-body {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
}

.bq-bracket-left {
  width: 6px;
  border-top: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
  margin-right: 28px;
  min-height: 80px;
}

.bq-bracket-right {
  width: 6px;
  border-top: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-radius: 0 4px 4px 0;
  flex-shrink: 0;
  margin-left: 28px;
  min-height: 80px;
}

.bq-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy);
  text-align: center;
  flex: 1;
  padding: 12px 0;
}

/* Footer row: short line — close-quote — long line */
.bq-footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bq-line-left-bot  { flex: 0 0 60px; height: 2px; background: var(--navy); }
.bq-line-right-bot { flex: 1;         height: 2px; background: var(--navy); }

.bq-close-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--navy);
  margin-bottom: -16px;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT FORM ENHANCEMENTS
   ============================================================ */

/* Per-field error messages */
.field-error {
  display: block;
  font-size: 0.75rem;
  color: #ffb3ae;
  margin-top: -4px;
  margin-bottom: 2px;
  min-height: 16px;
}

/* Red border on invalid field */
.form-input.input-error {
  border-color: #ff6b60 !important;
  background: rgba(255, 100, 80, 0.1) !important;
}

/* Top-level status banner */
.form-message {
  display: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.form-message.success {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #c8ffc8;
}

.form-message.error {
  display: block;
  background: rgba(255, 80, 60, 0.12);
  border: 1px solid rgba(255, 80, 60, 0.4);
  color: #ffb3ae;
}

/* Disabled state while submitting */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Two-column row, each column stacks input + error */
.form-row {
  display: flex;
  gap: 10px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-col .form-input.half {
  width: 100%;
}

/* ============================================================
   RESPONSIVE – Tablet
   ============================================================ */
@media (max-width: 900px) {
  .contact-hero { height: 260px; }
  .bq-text      { font-size: 1.25rem; }
  .bq-title     { font-size: 1.6rem; }
  .bq-open-mark,
  .bq-close-mark { font-size: 3.5rem; }
}

/* ============================================================
   RESPONSIVE – Mobile
   ============================================================ */
@media (max-width: 600px) {
  .contact-hero { height: 200px; }
  .bq-section   { padding: 48px 0 40px; }
  .bq-text      { font-size: 1.05rem; }
  .bq-title     { font-size: 1.3rem; }
  .bq-open-mark,
  .bq-close-mark { font-size: 2.8rem; }
  .bq-bracket-left,
  .bq-bracket-right { display: none; }
  .form-row { flex-direction: column; }
}
