.contact__bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1)),
    url("../images/contact_bg.webp");
  width: 100%;
  height: 70vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}


/* =========================================
   MAIN CARD
========================================= */

.contact-wrapper {
  width: min(1460px, 100%);
  min-height: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 32% 68%;
  background: #ffffff;
  border: 1px solid #e4ebe6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(24, 73, 49, 0.08);
}

/* =========================================
   LEFT PANEL
========================================= */

.contact-info {
  position: relative;
  padding: 55px 38px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fcf9 0%, #eef9f2 100%);
}

.mail-icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2f4e9;
  margin-bottom: 25px;
}

.mail-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: var(--green-1);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(32px, 2.6vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--green-1);
  margin-bottom: 18px;
}

.intro {
  position: relative;
  z-index: 2;
  max-width: 350px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--black-3);
}

.green-line {
  width: 65px;
  height: 2px;
  margin: 26px 0 42px;
  background-color: var(--green-1);
}

/* =========================================
   CONTACT ITEMS
========================================= */

.contact-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-item-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2f4e9;
}

.contact-item-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--green-1);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--black-2);
  font-family: Poppins;
}

.contact-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--black-3);
}

/* =========================================
   RIGHT FORM
========================================= */

.contact-form {
  padding: 80px 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 38px;
}

.form-group {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 650;
  color: var(--black-2);
  font-family: Poppins;
}

.input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 54px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.input-wrapper:focus-within {
  border-color: #37a66f;
  box-shadow: 0 0 0 3px rgba(55, 166, 111, 0.1);
}

.input-icon {
  width: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2faf5;
}

.input-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--green-1);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrapper input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  font-size: 16px;
  font-family: inherit;
  color: #1d2939;
  background: transparent;
}

.input-wrapper input::placeholder {
  color: #8b95a5;
}

.department-group {
  margin-bottom: 38px;
}

.select-wrapper select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: #fff;
  padding: 0 45px 0 18px;
  font-size: 16px;
  font-family: inherit;
  color: #667085;
  cursor: pointer;
  appearance: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrapper select:valid {
  color: #1d2939;
}

.message-group {
  margin-bottom: 28px;
}

.textarea-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 160px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.textarea-wrapper:focus-within {
  border-color: #37a66f;
  box-shadow: 0 0 0 3px rgba(55, 166, 111, 0.1);
}

.textarea-wrapper textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 18px 18px 35px 18px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: #1d2939;
  background: transparent;
}

.textarea-wrapper textarea::placeholder {
  color: #8b95a5;
}

.textarea-icon {
  align-self: flex-start;
  height: 52px;
}

.character-count {
  position: absolute;
  right: 15px;
  bottom: 12px;
  font-size: 13px;
  color: #8b95a5;
  pointer-events: none;
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--green-1);
  color: #ffffff;
  font-family: Poppins;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.submit-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(8, 116, 67, 0.22);
  filter: brightness(1.04);
}

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

/* =========================================
   TABLET
========================================= */



.error-message {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  padding-left: 4px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.4;
}

.input-wrapper.error,
.textarea-wrapper.error,
.select-wrapper.error {
  border-color: #dc2626 !important;
}

.input-wrapper.success,
.textarea-wrapper.success,
.select-wrapper.success {
  border-color: #16a34a !important;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #dc2626;
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
  border-color: #16a34a;
}

/* =========================================
   MODERN CONTACT MAP
========================================= */

.contact-map-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
}

.map-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-1);
  font-family: Poppins;
}

.contact-map-header h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--black-2);
  font-family: Poppins;
}

.contact-map-header h2 span {
  color: var(--green-1);
  font-family: Poppins;
}

.contact-map-header p {
  margin: 0;
  color: #707070;
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================
   MAP WRAPPER
========================================= */

.modern-map-wrapper {
  position: relative;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.modern-map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(15%) contrast(95%);
}

/* =========================================
   LOCATION ICON
========================================= */
.map-address-content {
  flex: 1;
}

.map-address-content > span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green-1);
  font-family: Poppins;
}

.map-address-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--black-3);
}

.map-address-content p {
  margin: 0 0 17px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--black-3);
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #fff;
  background: var(--green-1);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.map-directions-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.map-directions-btn:hover {
  background: var(--black-3);
  color: #fff;
}

.map-directions-btn:hover svg {
  transform: translateX(3px);
}

/* =========================================
   PAGE
========================================= */

.registration-page {
  min-height: 100vh;
  padding: 28px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* =========================================
   MAIN CARD
========================================= */

.registration-card {
  width: 100%;
  max-width: 1440px;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(15, 35, 45, 0.10),
    0 3px 12px rgba(15, 35, 45, 0.05);
}

/* =========================================
   FORM
========================================= */

.registration-form {
  padding: 38px 60px 0;
}


/* =========================================
   ACTIVITY
========================================= */

.activity-section {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 20px;
  color: var(--green-1);
  font-weight: 700;
}

.section-heading span {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 10px;
  background: var(--green-1);
  border-radius: 20px;
}

.activity-options {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}


.activity-card {
  position: relative;
  min-width: 180px;
  height: 58px;
  padding: 0 22px;
  border: 1px solid var(--green-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--black-2);
  background: white;
  transition: 0.25s ease;
}

.activity-card:hover {
  border-color: #83c7be;
  background: #f8fcfb;
}

.activity-card.active {
  border-color: var(--green-2);
  background:
    linear-gradient(
      135deg,
      #f8fdfc,
      #eef9f6
    );
  box-shadow:
    0 4px 12px rgba(8, 127, 112, 0.08);
}

.activity-card input {
  position: absolute;
  opacity: 0;
}

.custom-radio {
  width: 21px;
  height: 21px;
  border: 1.5px solid #b9c5cc;
  border-radius: 50%;
  position: relative;
}

.activity-card.active .custom-radio {
  border-color: var(--primary);
}

.activity-card.active .custom-radio::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  left: 4px;
  top: 4px;
}


/* =========================================
   FORM GRID
========================================= */

.form-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 26px 28px;
}

.form-group {
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black-2);
}

.form-group label span {
  color: red;
  margin-left: 2px;
}

/* =========================================
   INPUT
========================================= */

.input-box {
  height: 57px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  transition: 0.25s ease;
}

.input-box:hover {
  border-color: #a8b8bf;
}

.input-box:focus-within {
  border-color: #37a66f;
  box-shadow: 0 0 0 3px rgba(55, 166, 111, 0.1);
}

.input-box input,
.input-box select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #1d2939;
}

.input-box input::placeholder {
  color: #8b95a5;
}

.input-box select {
  appearance: none;
  cursor: pointer;
}


/* =========================================
   ADDRESS
========================================= */

.address-field {
  grid-column: span 2;
}

/* =========================================
   FOOTER
========================================= */

.form-footer {
  margin-top: 34px;
  margin-left: -60px;
  margin-right: -60px;
  padding: 28px 60px;
  border-top: 1px solid #e8edef;
  background:
    linear-gradient(
      180deg,
      #fbfdfd,
      #f8fbfa
    );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-btn {
  min-width: 188px;
  height: 56px;
  border: none;
  border-radius: 7px;
  background-color: var(--green-1);
  color: white;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(8, 127, 112, 0.18);
  transition: 0.25s ease;
}


.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 25px rgba(8, 127, 112, 0.25);
}

.submit-btn:active {
  transform: translateY(0);
}
/* =========================================
   SECURITY
========================================= */

.security-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f5f2;
  color: var(--green-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.security-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #263947;
}

.security-info p {
  margin-top: 5px;
  font-size: 13px;
  color: #6c7c87;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

  .registration-page {
    padding: 25px;
  }

  .registration-form {
    padding-left: 40px;
    padding-right: 40px;
  }

  .form-footer {
    margin-left: -40px;
    margin-right: -40px;

    padding-left: 40px;
    padding-right: 40px;
  }

  .form-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .address-field {
    grid-column: span 2;
  }

  .header-decoration {
    opacity: 0.6;
  }

}


@media (max-width: 768px) {

  .registration-page {
    padding: 15px;
  }

  .registration-card {
    border-radius: 15px;
  }

  .form-header {
    height: auto;

    padding: 30px 25px;
  }

  .header-content {
    gap: 18px;
  }

  .header-icon {
    width: 62px;
    height: 62px;

    border-radius: 16px;

    font-size: 29px;
  }

  .form-header h1 {
    font-size: 20px;
  }

  .form-header p {
    font-size: 13px;
  }

  .header-decoration {
    display: none;
  }

  .registration-form {
    padding: 30px 25px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;

    gap: 21px;
  }

  .address-field {
    grid-column: auto;
  }

  .activity-options {
    flex-direction: column;

    gap: 10px;
  }

  .activity-card {
    width: 100%;
  }

  .form-footer {
    margin-left: -25px;
    margin-right: -25px;

    padding: 22px 25px;

    flex-direction: column;

    align-items: stretch;

    gap: 25px;
  }

  .submit-btn {
    width: 100%;
  }

  .security-info {
    justify-content: center;
  }

}


@media (max-width: 480px) {

  .form-header {
    padding: 25px 18px;
  }

  .header-content {
    align-items: flex-start;
  }

  .header-icon {
    width: 50px;
    height: 50px;

    font-size: 24px;
  }

  .form-header h1 {
    font-size: 17px;
  }

  .form-header p {
    font-size: 12px;

    margin-top: 6px;
  }

  .registration-form {
    padding: 25px 18px 0;
  }

  .form-footer {
    margin-left: -18px;
    margin-right: -18px;

    padding-left: 18px;
    padding-right: 18px;
  }

  .security-info {
    align-items: flex-start;
  }

  .security-info strong,
  .security-info p {
    font-size: 12px;
  }

}
/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
  .contact-section {
    padding: 50px 25px;
  }

  .contact-wrapper {
    grid-template-columns: 35% 65%;
  }

  .contact-info {
    padding: 45px 28px;
  }

  .contact-form {
    padding: 55px 35px;
  }

  .form-row {
    gap: 20px;
    margin-bottom: 28px;
  }
}

@media (max-width: 800px) {
  .contact-section {
    padding: 25px 15px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 40px 28px;
    min-height: auto;
  }

  .city-decoration {
    display: none;
  }

  .contact-form {
    padding: 40px 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .contact-map-section {
    padding: 60px 20px;
  }

  .modern-map-wrapper {
    height: 550px;
    border-radius: 20px;
  }

  .map-address-card {
    left: 20px;
    right: 20px;
    bottom: 20px;

    width: auto;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    /* Contact */
    .contact-section {
    padding: 15px 10px;
  }

  .contact-info {
    padding: 30px 22px;
  }

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

  .contact-info h1 {
    font-size: 30px;
  }

  .intro {
    font-size: 16px;
  }

  .mail-icon {
    width: 62px;
    height: 62px;
  }

  .form-group label {
    font-size: 15px;
  }

  .input-wrapper {
    height: 52px;
  }

  .submit-btn {
    height: 55px;
    font-size: 16px;
  }

    /* Map */

  .contact-map-section {
    padding: 50px 15px;
  }

  .contact-map-header {
    margin-bottom: 25px;
  }

  .contact-map-header h2 {
    font-size: 30px;
  }

  .contact-map-header p {
    font-size: 14px;
  }

  .modern-map-wrapper {
    height: 520px;
    border-radius: 18px;
  }

  .map-address-card {
    left: 12px;
    right: 12px;
    bottom: 12px;

    padding: 18px;

    gap: 13px;

    border-radius: 15px;
  }

  .map-location-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 11px;
  }

  .map-location-icon svg {
    width: 21px;
    height: 21px;
  }

  .map-address-content h3 {
    font-size: 18px;
  }

  .map-address-content p {
    font-size: 12px;
  }
}
