/* =========================
   CONTACT SECTION
========================= */
.section-title {
  margin-top: -40px;
  margin-bottom: 40px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.8px;
}

#contact {
  width: 90%;
  max-width: 400px;
  margin: auto;
  padding: 25px;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77,166,255,0.2);
  border-left: 4px solid #4facfe;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
}

#contact:hover {
  transform: translateY(-3px);
  border-left: 4px solid #00d4ff;
  box-shadow: 0 15px 30px rgba(0,212,255,0.25), 0 15px 35px rgba(0,0,0,0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   INPUTS / TEXTAREA / SELECT
========================= */
#contact input,
#contact textarea,
#contact select {
  width: 100%;
  outline: none;
  background-color: #121c44;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* =========================
   SELECT FIELD
========================= */
#contact select {
  height: 42px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 38px;
  font-weight: 500;
  letter-spacing: 0.2px;

  background-image:
    linear-gradient(45deg, transparent 50%, #00d4ff 50%),
    linear-gradient(135deg, #00d4ff 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;

  background-size:
    6px 6px,
    6px 6px;

  background-repeat: no-repeat;

  border: 1px solid rgba(0,212,255,0.25);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.03);
}

#contact select:hover,
#contact select:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 14px rgba(0,212,255,0.22);
}

#contact select option {
  background: #121c44;
  color: #fff;
  font-size: 13px;
}

/* =========================
   MESSAGE BOX
========================= */
#contact textarea,
#messageBox {
  min-height: 150px !important;
  height: 150px;
  max-height: 260px;
  resize: vertical;
  overflow: auto;
  text-align: left;
  line-height: 1.5;
}

/* =========================
   FOCUS EFFECTS
========================= */
#contact input:focus,
#contact textarea:focus,
#contact select:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}

/* =========================
   BUTTON
========================= */
.contact-btn {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,#00d4ff,#4facfe);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: center;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,212,255,0.4);
}

/* =========================
   MOBILE
========================= */
@media(max-width:480px){

  #contact {
    width: 95%;
    padding: 20px;
    border-left-width: 3px;
  }

  .input-row {
    flex-direction: column;
    gap: 8px;
  }

  #contact input,
  #contact textarea,
  #contact select {
    font-size: 12px;
    padding: 14px;
  }

  #contact select {
    height: 46px;
    padding-right: 40px;
  }

  #contact textarea,
  #messageBox {
    min-height: 160px !important;
    height: 160px;
  }

  .contact-btn {
    width: 100%;
  }
}

/* =========================
   COUNTER / STATUS
========================= */
#charCounter {
  align-self: flex-start;
  text-align: left;
  font-size: 14px;
  color: #888;
}

#formStatus {
  font-size: 12px;
  margin-top: 1px;
  margin-bottom: 1px;
}

#messageBox {
  text-align: left;
}

/* =========================
   CUSTOM SELECT
========================= */

.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.select-trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background:
    linear-gradient(
      180deg,
      rgba(20,30,70,0.96),
      rgba(14,22,52,0.96)
    );

  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 14px;

  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 4px 18px rgba(0,0,0,0.22);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.select-trigger:hover {
  border-color: rgba(0,212,255,0.45);

  box-shadow:
    0 0 0 1px rgba(0,212,255,0.08),
    0 0 20px rgba(0,212,255,0.14),
    0 8px 24px rgba(0,0,0,0.28);
}

.custom-select.open .select-trigger {
  border-color: #00d4ff;

  box-shadow:
    0 0 0 1px rgba(0,212,255,0.15),
    0 0 22px rgba(0,212,255,0.22),
    0 10px 26px rgba(0,0,0,0.32);
}

/* =========================
   ARROW
========================= */

.select-arrow {
  width: 9px;
  height: 9px;

  border-right: 2px solid #00d4ff;
  border-bottom: 2px solid #00d4ff;

  transform: rotate(45deg);
  transition: transform 0.25s ease;

  margin-top: -3px;
}

.custom-select.open .select-arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* =========================
   DROPDOWN
========================= */

.select-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  width: 100%;

  background:
    linear-gradient(
      180deg,
      rgba(17,26,61,0.98),
      rgba(10,16,38,0.98)
    );

  backdrop-filter: blur(16px);

  border: 1px solid rgba(0,212,255,0.14);
  border-radius: 16px;

  padding: 6px;

  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);

  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;

  z-index: 999;

  box-shadow:
    0 12px 40px rgba(0,0,0,0.45),
    0 0 30px rgba(0,212,255,0.08);
}

.custom-select.open .select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* =========================
   OPTIONS
========================= */

.select-option {
  position: relative;

  padding: 8px 12px;

  border-radius: 10px;

  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.select-option:hover {
  background: rgba(0,212,255,0.12);
  color: #00d4ff;

  transform: translateX(2px);
}

/* =========================
   MOBILE
========================= */

@media(max-width:480px){

  .select-trigger {
    min-height: 50px;
    font-size: 12px;
    border-radius: 14px;
  }

  .select-option {
    padding: 6px 12px;
    font-size: 13px;
  }

}
