/**
 * IRP - Contact page "Let's Connect" section
 * Two-column layout: intro + company card + action cards | contact form
 */

.contact-connect {
  padding: 80px 16px;
  background: #fff;
}

.contact-connect-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.contact-connect-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.contact-connect-grid {
  display: grid;
  gap: 48px;
}

.contact-intro {
  margin-bottom: 32px;
}

.contact-intro-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.contact-intro-text {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Company / info card with gradient */
.contact-card {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.contact-card-gradient {
  background: linear-gradient(to bottom right, #eff6ff, #f1f5f9);
  border: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-card-content {
  padding: 32px;
}

.contact-company {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-company-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-company-icon svg {
  width: 24px;
  height: 24px;
}

.contact-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.contact-company-tagline {
  font-size: 1rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.contact-details {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-label {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.contact-detail-text {
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.contact-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #1d4ed8;
}

/* Form card */
.contact-connect-right {
  display: flex;
  flex-direction: column;
}

.contact-form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 0;
}

.contact-form-card-content {
  padding: 32px;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.contact-form-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.contact-form-msg-success {
  background: #dcfce7;
  color: #166534;
}

.contact-form-msg-error {
  background: #fee2e2;
  color: #991b1b;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.contact-field .required {
  color: #dc2626;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.contact-field-error {
  min-height: 16px;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: #b91c1c;
}

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

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.contact-submit.is-loading {
  opacity: 0.85;
  cursor: not-allowed;
}

.contact-form.is-submitting input[readonly],
.contact-form.is-submitting textarea[readonly] {
  background-color: #f3f4f6;
  color: #374151;
  cursor: default;
}

.contact-submit:hover {
  background: #1d4ed8;
}

.contact-submit svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-form-note {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* ========== Responsive ========== */
@media (min-width: 992px) {
  .contact-connect {
    padding: 80px 24px;
  }
  .contact-connect-container {
    padding: 0 24px;
  }
  .contact-connect-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .contact-form-card-content {
    padding: 40px;
  }
}

@media (max-width: 767px) {
  .contact-connect {
    padding: 48px 16px;
  }
  .contact-intro-title {
    font-size: 1.5rem;
  }
  .contact-intro-text {
    font-size: 1rem;
  }
  .contact-card-content {
    padding: 24px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .contact-connect {
    padding: 40px 12px;
  }
  .contact-company {
    flex-direction: column;
    align-items: flex-start;
  }
}
