/**
 * Contact Page Stylesheet — Grandview Edge
 * Matches the site's signature .pa-r-contact panel, typography, and UI block language.
 */

.gv-contact-page {
  position: relative;
  isolation: isolate;
  background: #f5f8fc;
  color: #12213a;
  padding: 60px 0 100px;
  overflow: hidden;
  min-height: calc(100vh - 200px);
}

.gv-contact-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(46, 163, 242, 0.12), transparent 70%);
}

.gv-contact-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb Navigation */
.gv-contact-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #718298;
  margin-bottom: 28px;
}

.gv-contact-breadcrumbs a {
  color: #718298;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gv-contact-breadcrumbs a:hover {
  color: #026cae;
}

.gv-contact-breadcrumbs span {
  color: #12213a;
}

/* Master GrandView Chamfer Cut Frame */
.gv-contact-frame {
  padding: 1px;
  background: linear-gradient(125deg, #2ea3f2, #b2cfdf 55%, #2ea3f2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  box-shadow: 0 12px 40px rgba(8, 14, 24, 0.06);
}

.gv-contact-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: start;
  gap: 60px;
  padding: 56px 60px;
  background: radial-gradient(ellipse at 95% 25%, rgba(46, 163, 242, 0.09), transparent 60%), #f8fbfe;
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 0 100%);
}

/* -------------------------------------------------------------------------
   Left Column: The Form
   ------------------------------------------------------------------------- */
.gv-contact-copy {
  display: flex;
  flex-direction: column;
}

.gv-contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #026cae;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gv-contact-eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #2ea3f2;
  border-radius: 50%;
}

.gv-contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #12213a;
  margin: 0 0 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.gv-contact-lead {
  color: #52637a;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 58ch;
  margin: 0 0 32px;
}

/* Alert Notification Banner */
.gv-form-alert {
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gv-form-alert.is-success {
  background: #edfbf3;
  border: 1px solid #a3e6be;
  color: #145a32;
}

.gv-form-alert.is-error {
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
}

/* Form Fields */
.gv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.gv-field-group {
  margin-bottom: 20px;
}

.gv-field-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #12213a;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.gv-field-group label .required-star {
  color: #d9383a;
  margin-left: 2px;
}

.gv-field-group input[type="text"],
.gv-field-group input[type="email"],
.gv-field-group input[type="tel"],
.gv-field-group textarea {
  width: 100%;
  padding: 13px 15px;
  background: #ffffff;
  border: 1.5px solid #cbd9e8;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: #12213a;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.gv-field-group input::placeholder,
.gv-field-group textarea::placeholder {
  color: #8fa0b5;
  font-weight: 400;
}

.gv-field-group input:hover,
.gv-field-group textarea:hover {
  border-color: #9cb1c9;
}

.gv-field-group input:focus,
.gv-field-group textarea:focus {
  border-color: #2ea3f2;
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.18);
}

.gv-field-group input.is-invalid,
.gv-field-group textarea.is-invalid {
  border-color: #e53e3e;
  background-color: #fffaf0;
}

.gv-field-error {
  display: none;
  font-size: 12px;
  color: #d9383a;
  margin-top: 5px;
  font-weight: 500;
}

.gv-field-group.has-error .gv-field-error {
  display: block;
}

.gv-field-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Action Row */
.gv-submit-row {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gv-btn-submit {
  width: auto;
  align-self: flex-start;
  padding: 15px 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: #2ea3f2;
  border: 1px solid #2ea3f2;
  color: #ffffff;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gv-btn-submit:hover:not(:disabled) {
  background-color: #12213a;
  border-color: #12213a;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(46, 163, 242, 0.32);
}

.gv-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.gv-btn-submit svg {
  transition: transform 0.2s ease;
}

.gv-btn-submit:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.gv-form-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #52637a;
}

.gv-form-privacy svg {
  flex-shrink: 0;
  color: #026cae;
}

/* -------------------------------------------------------------------------
   Right Column: Expert, Quote & Partners (Signature Domain Pattern)
   ------------------------------------------------------------------------- */
.gv-contact-action {
  width: 100%;
  max-width: 410px;
  justify-self: end;
  background: #ffffff;
  border: 1px solid #dce7f1;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(18, 33, 58, 0.03);
}

/* Person Header */
.gv-contact-person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.gv-contact-person img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: top center;
  flex: none;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  border: 1px solid #dce7f1;
}

.gv-contact-person strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #12213a;
}

.gv-contact-person span {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: #52637a;
  margin-top: 4px;
}

.gv-contact-person small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #026cae;
  margin-top: 4px;
  font-weight: 600;
}

/* Expert Quote */
.gv-contact-quote {
  margin: 0 0 24px;
  padding: 20px 0;
  border-top: 1px solid #dce7f1;
  border-bottom: 1px solid #dce7f1;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #34445e;
  font-style: italic;
}

/* Partner Accreditations */
.gv-contact-expertise {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
}

.gv-contact-expertise img {
  width: 72px;
  height: auto;
  flex: none;
}

.gv-contact-expertise span {
  font-size: 13px;
  line-height: 1.45;
  color: #52637a;
}

/* Direct Alternative Email */
.gv-contact-direct {
  padding-top: 18px;
  border-top: 1px solid #dce7f1;
  font-size: 13px;
  line-height: 1.5;
  color: #52637a;
}

.gv-contact-direct a {
  color: #026cae;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 2px;
}

.gv-contact-direct a:hover {
  text-decoration: underline;
  color: #12213a;
}

/* -------------------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .gv-contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 30px;
  }
  .gv-contact-action {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 580px) {
  .gv-contact-page {
    padding: 40px 0 60px;
  }
  .gv-contact-inner {
    padding: 28px 20px;
  }
  .gv-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .gv-btn-submit {
    width: 100%;
  }
  .gv-contact-action {
    padding: 24px 18px;
  }
  .gv-contact-person {
    gap: 16px;
  }
  .gv-contact-person img {
    width: 80px;
    height: 80px;
  }
  .gv-contact-person strong {
    font-size: 18px;
  }
}
