/* static/css/contacts.css */

/* ---------------------------------------------------------
   1. General & Utility
--------------------------------------------------------- */
.zs-contacts-main {
  background-color: var(--color-bg-soft);
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text-strong);
}

.zs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------------------------------------------------------
   2. Banner Section
--------------------------------------------------------- */
.zs-contacts-banner {
  position: relative;
  width: 100%;
  height: 600px; /* Increased banner height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align text block to the left */
}

.zs-contacts-banner .zs-bg-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zs-contacts-banner .zs-bg-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zs-contacts-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.zs-contacts-banner-text {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  padding: 0 7%; /* Align with header logo (7% padding) */
}

.zs-contacts-banner-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.zs-contacts-banner-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
}

/* ---------------------------------------------------------
   3. Content Layout (Info & Form)
--------------------------------------------------------- */
.zs-contacts-content-section {
  background-color: var(--color-bg-soft);
  position: relative;
  padding-bottom: 5rem;
}

.zs-contacts-content-container {
  max-width: none;
  margin: 0;
  padding: 0 7%; /* Align with header logo (7% padding) */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* ---------------------------------------------------------
   4. Headquarters Section (Left)
--------------------------------------------------------- */
.zs-headquarters-section {
  width: 45%;
  padding-top: 4rem;
  text-align: left;
}

.zs-headquarters-section h2 {
  font-size: 3rem; /* Increased font size slightly */
  font-weight: 700;
  color: var(--color-text-strong);
  margin-top: 0;
  margin-bottom: 2rem;
}

.zs-headquarters-section address p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 2rem;
  font-style: normal;
}

.zs-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--color-text);
}

.zs-contact-info a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.zs-contact-info a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   5. Form Section (Right)
--------------------------------------------------------- */
.zs-contacts-form-section {
  width: 50%;
  margin-top: -300px; /* Pull the form up further over the banner */
  z-index: 10;
  position: relative;
}

.zs-custom-form-wrapper {
  width: 100%;
  background-color: #fff;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.zs-contacts-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.zs-form-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.zs-col-half {
  flex: 1;
  width: calc(50% - 0.75rem);
}

.zs-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.zs-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.5rem;
}

.zs-required {
  color: var(--color-primary);
}

.zs-form-group input[type="text"],
.zs-form-group input[type="email"],
.zs-form-group textarea,
.zs-form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.zs-form-group input:focus,
.zs-form-group textarea:focus,
.zs-form-group select:focus {
  border-color: var(--color-primary);
  background-color: #fff;
}

.zs-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Custom Select styling */
.zs-select-wrapper {
  position: relative;
  width: 100%;
}

.zs-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.zs-searchable-select::after {
  display: none;
}

.zs-icon-search-select {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checkbox Styling */
.zs-form-checkbox-group {
  margin-top: 1rem;
}

.zs-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  font-weight: 400 !important;
}

.zs-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.zs-checkbox-custom {
  position: relative;
  top: 0.25rem;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1px solid var(--color-text-subtle);
  border-radius: 3px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.zs-checkbox-label input:checked ~ .zs-checkbox-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.zs-checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.zs-checkbox-label input:checked ~ .zs-checkbox-custom:after {
  display: block;
}

.zs-checkbox-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Submit Button */
.zs-form-submit {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.zs-btn-submit {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.8rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.zs-btn-submit:hover {
  background-color: var(--color-primary-hover);
}

/* ---------------------------------------------------------
   6. Responsive Design
--------------------------------------------------------- */
@media (max-width: 991px) {
  .zs-contacts-content-container {
    flex-direction: column;
    padding: 0 5%; /* Adjust padding for smaller screens */
  }

  .zs-headquarters-section {
    width: 100%;
    order: 2; /* Move info below form on mobile */
    padding-top: 2rem;
  }

  .zs-contacts-form-section {
    width: 100%;
    order: 1; /* Keep form overlapping banner on mobile */
    margin-top: -150px; /* Reduce negative margin so it doesn't overlap text on mobile */
  }
}

@media (max-width: 768px) {
  .zs-contacts-banner {
    height: auto;
    min-height: 400px;
    padding: 4rem 0 10rem 0; /* Add bottom padding to make room for overlapping form */
    align-items: flex-start; /* Align text to top */
  }
  
  .zs-contacts-banner-text {
    padding-top: 2rem;
  }

  .zs-contacts-banner-text h1 {
    font-size: 2.5rem;
  }

  .zs-headquarters-section h2 {
    font-size: 2.5rem; /* Ensure it scales down slightly on mobile */
  }
  
  .zs-form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .zs-col-half {
    width: 100%;
  }

  .zs-custom-form-wrapper {
    padding: 2rem 1.25rem;
  }

  .zs-contact-info {
    flex-direction: column;
    gap: 1rem;
  }
}
