/* ==========================================================================
   Arbuda Engineering — Responsive Contact & Consultation Section
   Design: Modern Brutalist Geometric Architecture + Clean Split Form Card
   Font: Plus Jakarta Sans (headings) + Schibsted Grotesk / Inter (UI elements)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Outer Wrapper
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  background-color: #F8FAFC;
  padding: 0 0 10rem;
  overflow: hidden;
  font-family: 'Schibsted Grotesk', var(--font-primary), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
  .contact-section {
    padding: 0 0 8rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 0 0 6rem;
  }
}

/* --------------------------------------------------------------------------
   Container (Full Width - Zero Left/Right Blank Space)
   -------------------------------------------------------------------------- */
.contact-section__container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Top Split Container (Visual Left, Form Right)
   Seamless, flush block without gap, border, or rounded curvature
   -------------------------------------------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #FFFFFF;
  width: 100%;
}

@media (max-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --------------------------------------------------------------------------
   Left Column: Modern Architectural Visual
   -------------------------------------------------------------------------- */
.contact-visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background-color: #E2E8F0;
  box-shadow: none;
  border: none;
  outline: none;
}

.contact-visual__picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.contact-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-visual:hover .contact-visual__img {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .contact-visual {
    position: relative;
    height: 24rem;
    min-height: 24rem;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .contact-visual {
    position: relative;
    height: 18rem;
    min-height: 18rem;
    border-radius: 0;
  }
}

/* --------------------------------------------------------------------------
   Right Column: Consultation Form Card (30% Compact Height)
   -------------------------------------------------------------------------- */
.contact-card {
  background: #FFFFFF;
  border-radius: 0;
  padding: 3rem 4rem;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1024px) {
  .contact-card {
    padding: 2.4rem 2.4rem;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 2rem 1.6rem;
    border-radius: 0;
  }
}

/* Card Header */
.contact-card__header {
  margin-bottom: 1.6rem;
}

.contact-card__title {
  font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.4rem 0;
}

.contact-card__title--serif {
  font-family: 'Playfair Display', var(--font-secondary, 'Lora', serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.contact-card__sub {
  font-size: 1.35rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

.contact-card__sub a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-card__sub a:hover {
  color: #3730A3;
  text-decoration: underline;
}

@media (min-width: 1025px) {
  .contact-card {
    padding: 3.6rem 6rem;
  }

  .contact-card__header,
  .contact-form {
    max-width: 52rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .contact-card__title {
    font-size: 2.1rem;
  }
  .contact-card__sub {
    font-size: 1.25rem;
  }
  .contact-card__header {
    margin-bottom: 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   Contact Form Fields (Compact ~30% Height, Sharp Flat Edges)
   -------------------------------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-field__label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
  display: block;
  letter-spacing: -0.01em;
}

/* Input Wrapper — Sharp Flat Edges */
.contact-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 0;
  transition: all 0.2s ease;
}

.contact-input-wrap:focus-within {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.contact-input-wrap.has-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.contact-input-icon {
  position: absolute;
  left: 1.2rem;
  width: 1.6rem;
  height: 1.6rem;
  color: #94A3B8;
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.contact-input-wrap:focus-within .contact-input-icon {
  color: #4F46E5;
}

.contact-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.95rem 1.2rem 0.95rem 3.8rem;
  font-size: 1.35rem;
  color: #0F172A;
  font-family: inherit;
  font-weight: 400;
  border-radius: 0;
}

.contact-input::placeholder {
  color: #94A3B8;
  opacity: 1;
}

/* Phone Field Specifics */
.contact-input-wrap--phone {
  padding-left: 0.4rem;
}

.contact-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  background: #F8FAFC;
  border-radius: 0;
  border: 1px solid #E2E8F0;
  user-select: none;
  flex-shrink: 0;
}

.contact-flag-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.contact-country-code {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1E293B;
}

.contact-chevron-small {
  width: 1.1rem;
  height: 1.1rem;
  color: #64748B;
}

.contact-input-wrap--phone .contact-input {
  padding-left: 1rem;
  padding-right: 3.8rem;
}

.contact-info-btn {
  position: absolute;
  right: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #64748B;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.contact-info-btn:hover {
  background: #EEF2FF;
  border-color: #818CF8;
  color: #4F46E5;
}

/* Select Dropdown Wrap */
.contact-select-wrap {
  position: relative;
}

.contact-select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.95rem 3.6rem 0.95rem 3.8rem;
  font-size: 1.35rem;
  color: #0F172A;
  font-family: inherit;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  border-radius: 0;
}

.contact-select:invalid,
.contact-select option[value=""] {
  color: #94A3B8;
}

.contact-select option {
  color: #0F172A;
  background: #FFFFFF;
  font-weight: normal;
  padding: 0.8rem;
}

.contact-select-arrow {
  position: absolute;
  right: 1.2rem;
  width: 1.5rem;
  height: 1.5rem;
  color: #94A3B8;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-input-wrap:focus-within .contact-select-arrow {
  color: #4F46E5;
  transform: rotate(180deg);
}

/* Textarea Message (Compact Height, Sharp Flat Edges) */
.contact-textarea-wrap {
  padding: 0;
}

.contact-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.95rem 1.2rem;
  font-size: 1.35rem;
  color: #0F172A;
  font-family: inherit;
  resize: none;
  min-height: 6.4rem;
  border-radius: 0;
}

.contact-textarea::placeholder {
  color: #94A3B8;
}

.contact-textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.contact-counter {
  font-size: 1.15rem;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.contact-counter.limit-near {
  color: #F59E0B;
}

.contact-counter.limit-reached {
  color: #EF4444;
  font-weight: 700;
}

/* Validation Error Text */
.contact-field__error {
  font-size: 1.15rem;
  color: #EF4444;
  margin-top: 0.35rem;
  display: none;
  font-weight: 500;
}

.contact-field__error.active {
  display: block;
}

/* Submit Button — Exact Executive Navbar Button (.nav-cta-btn) Parity */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.05rem 2.2rem;
  background: #111827;
  color: #FFFFFF;
  font-family: var(--font-primary), sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: background-color 0.25s ease,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              color 0.25s ease;
  margin-top: 0.4rem;
  position: relative;
  overflow: hidden;
}

.contact-submit-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.28);
}

.contact-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.2);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-submit-arrow {
  width: 1.4rem;
  height: 1.4rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-submit-btn:hover .contact-submit-arrow {
  transform: translate(2px, -2px);
}

/* Success Banner */
.contact-form__success {
  display: none;
  padding: 1.4rem 1.6rem;
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-radius: 1.2rem;
  color: #065F46;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 1rem;
  text-align: center;
}

.contact-form__success.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Bottom Reach Out Section
   -------------------------------------------------------------------------- */
.contact-reachout {
  margin-top: 8rem;
  text-align: left;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2.5rem;
}

@media (min-width: 1200px) {
  .contact-reachout {
    padding: 0 10rem;
  }
}

@media (max-width: 768px) {
  .contact-reachout {
    margin-top: 5rem;
    padding: 0 1.6rem;
  }
}

.contact-reachout__title {
  font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem 0;
  line-height: 1.15;
}

.contact-reachout__title--serif {
  font-family: 'Playfair Display', var(--font-secondary, 'Lora', serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.contact-reachout__sub {
  font-size: 1.55rem;
  color: #64748B;
  margin: 0 0 4rem 0;
  line-height: 1.5;
}

.contact-reachout__sub a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-reachout__sub a:hover {
  color: #3730A3;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-reachout__title {
    font-size: 2.6rem;
  }
  .contact-reachout__sub {
    font-size: 1.4rem;
    margin-bottom: 2.8rem;
  }
}

/* Reach Out Grid */
.contact-reachout__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

@media (max-width: 1024px) {
  .contact-reachout__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
}

@media (max-width: 640px) {
  .contact-reachout__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* Individual Card (Sharp Edges - No Rounded Corners) */
.reachout-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0;
  padding: 3.2rem 2.8rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.reachout-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08);
}

.reachout-card__icon-wrap {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.reachout-card:hover .reachout-card__icon-wrap {
  transform: scale(1.08);
  background: #E0E7FF;
}

.reachout-card__icon-wrap svg {
  width: 2.2rem;
  height: 2.2rem;
}

.reachout-card__title {
  font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.8rem 0;
  letter-spacing: -0.02em;
}

.reachout-card__desc {
  font-size: 1.4rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 1.8rem 0;
  flex-grow: 1;
}

.reachout-card__link {
  font-size: 1.45rem;
  font-weight: 600;
  color: #4F46E5;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.reachout-card__link:hover {
  color: #3730A3;
  text-decoration: underline;
}
