/* ── Contact Page styles ── */

/* ── Contact Section layout ── */
body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  bottom: 0;
  top: inherit;
  background:
    radial-gradient(ellipse 70% 60% at 12% 75%,
      rgba(190, 230, 255, 0.75) 0%,
      rgba(190, 230, 255, 0) 70%),
    radial-gradient(ellipse 70% 60% at 88% 75%,
      rgba(215, 200, 245, 0.75) 0%,
      rgba(215, 200, 245, 0) 70%),
    linear-gradient(135deg,
      #ffffff 0%,
      #f7fcff 20%,
      #eaf7ff 45%,
      #eeeafb 70%,
      #ddd3ef 100%);
}


body::after {
  background: url(../src/hero-top.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: inherit;
  top: 0;
  width: 100%;
  height: 479px;
  z-index: 1;
}

.page-content-bg {
  position: relative;
  overflow: hidden;
  padding-top: 0px;
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 60% at 10% 75%,
      rgba(190, 230, 255, 0.8),
      transparent 70%),
    radial-gradient(ellipse 70% 60% at 90% 75%,
      rgba(215, 200, 245, 0.8),
      transparent 70%),
    linear-gradient(180deg,
      #ffffff 0%,
      #f8fcff 20%,
      #eaf7ff 45%,
      #eeeafb 70%,
      #ddd3ef 100%);
}

.contact-section {
  padding: 60px 0;
  position: relative;
}

.container {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 2vw, 1.25rem);
}

.contact-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ── Left panel: info ── */
.contact-info-panel {
  flex-shrink: 1;
  width: min(660px, 100%);
  min-width: 0;
  background: #000;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 1;
  color: #fff;
}

.contact-info-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-hero {
  background: unset;
  z-index: 2;
  position: relative;
  padding: 0 0 120px 0;
  height: 400px;
}

.contact-info-heading {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 140%;
  color: #fff;
}

.contact-info-desc {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact detail row (icon + text) */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.contact-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #191919;
  border: 1px solid #242424;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form .btn-gradient {
  max-width: max-content;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.contact-detail-label {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.contact-detail-value {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

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

.contact-detail-addresses {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-address-name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

/* ── Right panel: form ── */
.contact-form-panel {
  flex: 1;
  border-radius: 32px;
  padding: 60px 56px 60px 60px;
  min-width: 0;
}

.contact-form-panel::before {
  content: "";
  position: absolute;
  width: 100%;
  max-width: 1092px;
  right: calc((100% - 1600px)/2);
  bottom: 0;
  top: 0;
  margin: auto;
  height: 100%;
  border-radius: 32px;
  background: #f9fafb54;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

/* ── Form rows ── */
.form-row {
  display: flex;
  gap: 18px;
}

.form-row .form-field {
  flex: 1;
  min-width: 0;
}

/* ── Form fields ── */
.form-field {
  position: relative;
  width: 100%;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 56px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #c8d1da;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #454f5b;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(69, 79, 91, 0.7);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #32A5FB;
}

.form-textarea {
  height: 139px;
  resize: vertical;
  padding-top: 16px;
  line-height: 1.5;
}

/* Fields with right icon */
.form-field--icon .form-input {
  padding-right: 44px;
}

.form-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Select fields */
.form-field--select {
  position: relative;
}

.form-select {
  cursor: pointer;
  padding-right: 44px;
  color: #454f5b;
}

.form-select option[value=""][disabled] {
  color: rgba(69, 79, 91, 0.7);
}

.form-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* ── File upload ── */
.form-upload {
  display: block;
  width: 100%;
  background: #fff;
  border: 2px dashed #c8d1da;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-upload:hover {
  border-color: #32A5FB;
}

.form-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 16px;
}

.form-upload-icon {
  width: 161px;
  height: 83px;
  object-fit: contain;
}

.form-upload-inner input.form-upload-text{
  width: 210px;
}

.form-upload-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #212b36;
  text-align: center;
}

.form-upload-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: solid;
  background: linear-gradient(89deg, #0578CE 0%, #391E95 200%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-upload-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #454f5b;
  text-align: center;
}

.error {    
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 1px;
    display: none;
    text-align: center;
    color: red;
    text-transform: capitalize;
}

/* ── Responsive ── */
@media (max-width: 1600px) {
  .container {
    max-width: 95%;
  }

  .contact-form-panel::before {
    right: 4%;
    ;
  }
}


@media (max-width: 1440px) {
  .contact-info-panel {
    width: 500px;
    padding: 36px;
  }

  .contact-form-panel {
    padding: 30px;
  }
}

@media (max-width: 1200px) {
  .contact-hero {
    background: unset;
    z-index: 2;
    position: relative;
    padding: 0 20px 40px 20px;
    height: 200px;
  }

  .contact-form-panel::before {
    display: none;
  }

  body::after {
    height: 250px;
    background-size: 100% 250px;
    background-repeat: no-repeat;
  }
}

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

  .contact-address-name {
    font-size: 15px;
  }

  body::after {
    height: 150px;
    background-size: 100% 150px;
    background-repeat: no-repeat;
  }

  .contact-inner {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info-panel {
    width: 100%;
    border-radius: 24px;
  }

  .contact-form-panel {
    border-radius: 24px;
  }

  .contact-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 97%;
  }

  .contact-inner {
    gap: 16px;
  }

  .contact-info-panel {
    padding: 28px 20px;
    gap: 28px;
    border-radius: 16px;
  }

  .contact-info-heading {
    font-size: clamp(22px, 6vw, 26px);
  }

  .contact-info-desc {
    font-size: 15px;
  }

  .contact-form-panel {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .contact-detail {
    gap: 14px;
  }

  .contact-detail-text {
    gap: 8px;
  }

  .contact-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .contact-icon-wrap svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 575px) {
  .contact-detail-label {
    font-size: 16px;
  }

  .contact-detail-value {
    font-size: 14px;
  }
}