/* Contact Section Block Styles */
/* Scoped to .contact-section-section */

/* ===== CSS Variables ===== */
.contact-section-section {
  --contact-bg-color: #f4f7fa;
  --contact-primary-color: #13367d;
  --contact-secondary-color: #0960a8;
  --contact-text-dark: #112446;
  --contact-text-medium: #313f58;
  --contact-text-light: #757575;
  --contact-white: #ffffff;
  --contact-border-color: #cccccc;
  --contact-font-family: "Poppins", sans-serif;
}

/* ===== Section Container ===== */
.contact-section-section {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 60px 20px;
  width: 100%;
  background-color: var(--contact-bg-color);
  font-family: var(--contact-font-family);
}

.contact-section-section *,
.contact-section-section *::before,
.contact-section-section *::after {
  box-sizing: border-box;
}

.contact-section-section .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ===== Main Wrapper ===== */
.contact-section-section .contact-section-wrapper {
  display: flex;
  flex-direction: row;
  gap: clamp(40px, 6vw, 74px);
  justify-content: space-between;
  align-items: flex-start;
}

/* ===== Left Column - Content ===== */
.contact-section-section .contact-section-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex: 1;
  max-width: 606px;
}

/* Header Section */
.contact-section-section .contact-section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-section-section .contact-section-title {
  margin: 0;
  font-size: 44px;
  font-weight: 300;
  text-align: left;
  text-transform: capitalize;
  color: var(--contact-text-dark);
  line-height: 54px;
}

.contact-section-section .contact-section-description {
  margin: 0;
  max-width: 502px;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  color: var(--contact-text-medium);
  line-height: 1.5;
}

/* ===== Benefits Section ===== */
.contact-section-section .contact-section-benefits {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-section-section .contact-section-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Benefit Item */
.contact-section-section .contact-section-benefit-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.contact-section-section .contact-section-tick-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.contact-section-section .contact-section-benefit-text {
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  color: var(--contact-text-medium);
  line-height: 1.4;
}

/* ===== Email CTA Button ===== */
.contact-section-section .contact-section-email-cta {
  display: flex;
}

.contact-section-section .contact-section-email-button {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  padding: 10px 30px;
  background-color: var(--contact-primary-color);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-section-section .contact-section-email-button:hover {
  background-color: #0d2a5a;
  transform: translateY(-2px);
}

.contact-section-section .contact-section-email-button:focus {
  outline: 2px solid var(--contact-secondary-color);
  outline-offset: 2px;
}

.contact-section-section .contact-section-email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 25px;
}

.contact-section-section .contact-section-email-icon svg {
  width: 100%;
  height: 100%;
}

.contact-section-section .contact-section-email-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--contact-white);
}

/* ===== Right Column - Form ===== */
.contact-section-section .contact-section-form-wrapper {
  flex: 1;
  max-width: 556px;
}

.contact-section-section .contact-section-form-card {
  background-color: var(--contact-white);
  border-radius: 6px;
  box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.10);
  padding: 30px;
}

/* Custom Form Code Area */
.contact-section-section .contact-section-custom-form {
  width: 100%;
}
.contact-section-section .contact-section-custom-form .contact-section-title {
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 30px;
}

.contact-section-section .contact-section-custom-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* No Form Message */
.contact-section-section .contact-section-no-form {
  text-align: center;
  padding: 40px 20px;
  color: var(--contact-text-light);
  font-size: 16px;
}

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

.contact-section-section .contact-section-form-heading {
  margin: 0 0 2px 0;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  text-align: left;
  color: var(--contact-text-dark);
  line-height: 1.4;
}

/* ===== Form Fields Container ===== */
.contact-section-section .contact-section-form-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== Form Field Rows (Two Columns) ===== */
.contact-section-section .contact-section-field-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-section-section .contact-section-field-row .contact-section-field-group {
  flex: 1;
  max-width: calc(50% - 10px);
}

/* ===== Form Field Groups ===== */
.contact-section-section .contact-section-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-section-section .contact-section-field-full {
  width: 100%;
}

.contact-section-section .contact-section-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--contact-text-medium);
  display: none; /* Labels are hidden, using placeholders */
}

.contact-section-section .contact-section-input,
.contact-section-section .contact-section-select,
.contact-section-section .contact-section-textarea {
  width: 100%;
  height: 47px;
  padding: 14px 16px;
  font-family: var(--contact-font-family);
  font-size: 14px;
  font-weight: 300;
  color: var(--contact-text-dark);
  background-color: var(--contact-white);
  border: 1px solid var(--contact-border-color);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-section-section .contact-section-textarea {
  height: auto;
  min-height: 92px;
  resize: vertical;
}

.contact-section-section .contact-section-input::placeholder,
.contact-section-section .contact-section-textarea::placeholder {
  color: var(--contact-text-light);
}

.contact-section-section .contact-section-input:focus,
.contact-section-section .contact-section-select:focus,
.contact-section-section .contact-section-textarea:focus {
  border-color: var(--contact-secondary-color);
  box-shadow: 0 0 0 3px rgba(9, 96, 168, 0.1);
}

.contact-section-section .contact-section-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  height: 44px;
}

/* ===== Services Dropdown ===== */
.contact-section-section .contact-section-services-dropdown {
  margin-top: 4px;
}

.contact-section-section .contact-section-services-dropdown .contact-section-label,
.contact-section-section .contact-section-services-dropdown .contact-section-services-label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--contact-text-light);
  margin-bottom: 8px;
}

.contact-section-section .contact-section-dropdown-selected {
  padding: 14px 16px;
  background-color: var(--contact-white);
  border: 1px solid var(--contact-border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.contact-section-section .contact-section-dropdown-selected:hover {
  border-color: var(--contact-secondary-color);
}

.contact-section-section .contact-section-dropdown-placeholder {
  font-size: 14px;
  font-weight: 300;
  color: var(--contact-text-light);
}

/* ===== Checkbox Group ===== */
.contact-section-section .contact-section-checkbox-group {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: flex-start;
  margin-top: 4px;
}

.contact-section-section .contact-section-checkbox {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  flex-shrink: 0;
  border: 1px solid #000000;
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--contact-primary-color);
}

.contact-section-section .contact-section-checkbox-label {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
  cursor: pointer;
}

.contact-section-section .contact-section-privacy-text {
  color: #000000;
}

.contact-section-section .contact-section-privacy-link {
  color: var(--contact-primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-section-section .contact-section-privacy-link:hover {
  color: var(--contact-secondary-color);
}

/* ===== Submit Button ===== */
.contact-section-section .submit-btn input{
  width: 100%;
  height: 40px;
  padding: 10px 24px;
  background-color: var(--contact-primary-color);
  border: none;
  border-radius: 4px;
  font-family: var(--contact-font-family);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: var(--contact-white);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.contact-section-section .submit-btn input:hover{
  background-color: #0960a8 !important;
}

.contact-section-section .submit-btn input:focus {
  outline: 2px solid var(--contact-secondary-color);
  outline-offset: 2px;
}

.contact-section-section .submit-btn input:active {
  transform: translateY(0);
}

/* ===== Note Section ===== */
.contact-section-section .contact-section-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0;
}

.contact-section-section .contact-section-note-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  color: #000000;
  line-height: 1.4;
}

.contact-section-section .contact-section-note-text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  color: #000000;
  line-height: 1.5;
}

.contact-section-section .contact-section-note-link {
  color: var(--contact-primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-section-section .contact-section-note-link:hover {
  color: var(--contact-secondary-color);
}

/* ===== Error States ===== */
.contact-section-section .contact-section-input.is-error,
.contact-section-section .contact-section-select.is-error,
.contact-section-section .contact-section-textarea.is-error {
  border-color: #dc3545;
}

.contact-section-section .contact-section-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ===== Responsive Breakpoints ===== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  .contact-section-section .contact-section-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contact-section-section .contact-section-content,
  .contact-section-section .contact-section-form-wrapper {
    max-width: 100%;
  }

  .contact-section-section .contact-section-description {
    max-width: 100%;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {

  .contact-section-section .contact-section-benefits-list{
    padding-left: 10px;
  }

  .contact-section-section {
    padding: 50px 10px;
  }

  .contact-section-section .contact-section-content {
    gap: 30px;
  }

  .contact-section-section .contact-section-benefits {
    gap: 20px;
  }

  .contact-section-section .contact-section-field-row {
    flex-direction: column;
    gap: 18px;
  }

  .contact-section-section .contact-section-field-row .contact-section-field-group {
    max-width: 100%;
  }

  .contact-section-section .contact-section-email-button {
    width: max-content;
    justify-content: center;
    margin: auto;
  }

  .contact-section-section .contact-section-form-card {
    padding: 24px;
  }

  .contact-section-section .contact-section-submit-btn {
    height: auto;
    padding: 14px 24px;
  }
  .contact-section-section .contact-section-custom-form .contact-section-title{
    font-weight: 500;
    margin-bottom: 50px;
  }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
  .contact-section-section {
    padding: 45px 10px;
  }

  .contact-section-section .contact-section-title {
    text-align: center;
    font-size: 30px;
  }

  .contact-section-section .contact-section-description {
    text-align: center;
  }

  .contact-section-section .contact-section-form-card {
    padding: 20px;
  }

  .contact-section-section .contact-section-form-heading {
    font-size: 16px;
  }

  .contact-section-section .contact-section-input,
  .contact-section-section .contact-section-select,
  .contact-section-section .contact-section-textarea {
    padding: 12px 14px;
    height: auto;
  }

  .contact-section-section .contact-section-select {
    height: auto;
  }

  .contact-section-section .contact-section-email-button {
    padding: 12px 20px;
  }
}
