/**
 * Enterprise contact form – two-panel card design.
 * Left: Enterprise Teams info (blue). Right: Get in touch form (white).
 */

.enterprise-contact-card {
  display: flex;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #fff;
}

.enterprise-contact-card__left {
  flex: 0 0 34%;
  background: #1e3a5f;
  color: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.enterprise-contact-card__left h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.enterprise-contact-card__left .enterprise-contact-card__tagline {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

.enterprise-contact-card__features {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
}

.enterprise-contact-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.enterprise-contact-card__features li::before {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.enterprise-contact-card__features li:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.enterprise-contact-card__features li:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

.enterprise-contact-card__features li:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.enterprise-contact-card__footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.enterprise-contact-card__right {
  flex: 1;
  background: #fff;
  padding: 2rem 2rem 2rem 2rem;
}

.enterprise-contact-card__right h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}

.enterprise-contact-card__right .enterprise-contact-card__subtext {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #666;
}

/* Form layout: 2 columns for name/email, company/phone; full width message and submit */
.enterprise-contact-card__right .enterprise-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-name {
  grid-column: 1;
  grid-row: 1;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-email {
  grid-column: 2;
  grid-row: 1;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-company {
  grid-column: 1;
  grid-row: 2;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-phone {
  grid-column: 2;
  grid-row: 2;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-message {
  grid-column: 1 / -1;
  grid-row: 3;
}

.enterprise-contact-card__right .enterprise-contact-form .form-actions {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 0.25rem 0 0;
}

/* Form item styling */
.enterprise-contact-card__right .enterprise-contact-form .form-item {
  margin: 0;
}

.enterprise-contact-card__right .enterprise-contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

.enterprise-contact-card__right .enterprise-contact-form input[type="text"],
.enterprise-contact-card__right .enterprise-contact-form input[type="email"],
.enterprise-contact-card__right .enterprise-contact-form input[type="tel"],
.enterprise-contact-card__right .enterprise-contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  font-size: 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f5f5f5;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.enterprise-contact-card__right .enterprise-contact-form input:focus,
.enterprise-contact-card__right .enterprise-contact-form textarea:focus {
  outline: none;
  border-color: #1e3a5f;
  background: #fff;
}

.enterprise-contact-card__right .enterprise-contact-form textarea {
  min-height: 100px;
  resize: vertical;
  padding-top: 0.75rem;
}

/* Icons inside inputs */
.enterprise-contact-card__right .enterprise-contact-form .form-item-name input,
.enterprise-contact-card__right .enterprise-contact-form .form-item-email input,
.enterprise-contact-card__right .enterprise-contact-form .form-item-company input,
.enterprise-contact-card__right .enterprise-contact-form .form-item-phone input {
  padding-left: 2.5rem;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-name input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' width='18' height='18'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-email input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' width='18' height='18'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-company input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' width='18' height='18'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-phone input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' width='18' height='18'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.enterprise-contact-card__right .enterprise-contact-form .form-item-message textarea {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' width='18' height='18'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem 0.75rem;
}

/* Submit button */
.enterprise-contact-card__right .enterprise-contact-form .form-actions .button--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #1e3a5f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.enterprise-contact-card__right .enterprise-contact-form .form-actions .button--primary:hover {
  background: #2a4a75;
}

.enterprise-contact-card__right .enterprise-contact-form .form-actions .button--primary::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Responsive: stack panels on small screens */
@media (max-width: 700px) {
  .enterprise-contact-card {
    flex-direction: column;
  }

  .enterprise-contact-card__left {
    flex: none;
  }

  .enterprise-contact-card__right .enterprise-contact-form {
    grid-template-columns: 1fr;
  }

  .enterprise-contact-card__right .enterprise-contact-form .form-item-name,
  .enterprise-contact-card__right .enterprise-contact-form .form-item-email,
  .enterprise-contact-card__right .enterprise-contact-form .form-item-company,
  .enterprise-contact-card__right .enterprise-contact-form .form-item-phone {
    grid-column: 1;
  }

  .enterprise-contact-card__right .enterprise-contact-form .form-item-email {
    grid-row: 2;
  }

  .enterprise-contact-card__right .enterprise-contact-form .form-item-company {
    grid-row: 3;
  }

  .enterprise-contact-card__right .enterprise-contact-form .form-item-phone {
    grid-row: 4;
  }

  .enterprise-contact-card__right .enterprise-contact-form .form-item-message {
    grid-row: 5;
  }

  .enterprise-contact-card__right .enterprise-contact-form .form-actions {
    grid-row: 6;
  }
}
