/* ════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════ */
.contact {
  padding: 140px 8%;
  background: #FFFFFF;
  color: #05295E;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(13, 86, 169, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.contact-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 2;
}

.contact-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(13, 86, 169, 0.06);
  border: 1px solid rgba(13, 86, 169, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: #0D56A9;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tag-line {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #0D56A9, transparent);
}

.contact-header h2 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 20px 0;
  color: #05295E;
  white-space: nowrap;
}

.contact-header h2 span {
  background: linear-gradient(135deg, #0D56A9, #B89857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  font-size: 15px;
  color: #5F6B7A;
  line-height: 1.8;
}

/* ── Grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Form ── */
.contact-form-wrap {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 86, 169, 0.08), transparent);
  z-index: 1;
}

.contact-form-wrap:hover {
  border-color: rgba(13, 86, 169, 0.15);
  box-shadow: 0 4px 20px rgba(13, 86, 169, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #05295E;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 14px;
  color: #05295E;
  background: #F8FAFC;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B8C4D4;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0D56A9;
  box-shadow: 0 0 0 3px rgba(13, 86, 169, 0.08);
  background: #FFFFFF;
}

/* ── Custom Select ── */
.form-select-wrap {
  position: relative;
}

.form-select-wrap select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 14px;
  color: #B8C4D4;
  background: #F8FAFC;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.form-select-wrap select:focus {
  border-color: #0D56A9;
  box-shadow: 0 0 0 3px rgba(13, 86, 169, 0.08);
  background: #FFFFFF;
  color: #05295E;
}

.form-select-wrap select:valid:not([value=""]) {
  color: #05295E;
}

.form-select-wrap select option {
  background: #FFFFFF;
  color: #05295E;
  padding: 10px;
}

.form-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9BA8B8;
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.form-select-wrap select:focus ~ .form-select-arrow {
  color: #0D56A9;
  transform: translateY(-50%) rotate(180deg);
}

/* ── Form Message ── */
.contact-form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  align-items: center;
  gap: 8px;
}

.contact-form-message.show {
  display: flex;
}

.contact-form-message.success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.contact-form-message.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ── Submit Button ── */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #B89857, #D4AF61);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(184, 152, 87, 0.25);
  margin-top: 4px;
  position: relative;
}

.contact-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184, 152, 87, 0.35);
}

.contact-submit:hover .btn-arrow {
  transform: translateX(3px);
}

.contact-submit .btn-arrow {
  transition: transform 0.3s ease;
}

.contact-submit:active {
  transform: translateY(0) scale(0.98);
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 20px rgba(184, 152, 87, 0.25) !important;
}

.contact-submit.success {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25) !important;
}

/* ── Spinner ── */
.btn-loader {
  display: inline-flex;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

.spinner-path {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* ── Info Cards ── */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 86, 169, 0.08), transparent);
  transition: all 0.4s ease;
  z-index: 1;
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: rgba(13, 86, 169, 0.2);
  box-shadow: 0 4px 20px rgba(13, 86, 169, 0.05);
}

.contact-card:hover::before {
  left: 8%;
  right: 8%;
  background: linear-gradient(90deg, transparent, rgba(13, 86, 169, 0.12), transparent);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(13, 86, 169, 0.06);
  border: 1px solid rgba(13, 86, 169, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0D56A9;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: #0D56A9;
  color: #FFFFFF;
  border-color: #0D56A9;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #05295E;
  margin-bottom: 2px;
}

.contact-card-body a,
.contact-card-body span,
.contact-card-body small {
  font-size: 13px;
  color: #5F6B7A;
  line-height: 1.5;
  word-break: break-word;
}

.contact-card-body a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card-body a:hover {
  color: #0D56A9;
}

.contact-card-body small {
  font-size: 11px;
  color: #9BA8B8;
}

.contact-card-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #B89857 !important;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-card-link:hover {
  color: #0D56A9 !important;
  transform: translateX(4px);
}

/* ── Map ── */
.contact-map {
  max-width: 1100px;
  margin: 40px auto 0;
  position: relative;
  z-index: 2;
}

.contact-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 200px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  color: #9BA8B8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.contact-map-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 86, 169, 0.08), transparent);
}

.contact-map-placeholder svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Scroll Reveal ── */
.contact-header .section-tag,
.contact-header h2,
.contact-header p,
.contact-form-wrap,
.contact-card,
.contact-map {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact.visible .contact-header .section-tag {
  opacity: 1; transform: translateY(0); transition-delay: 0s;
}
.contact.visible .contact-header h2 {
  opacity: 1; transform: translateY(0); transition-delay: 0.1s;
}
.contact.visible .contact-header p {
  opacity: 1; transform: translateY(0); transition-delay: 0.2s;
}
.contact.visible .contact-form-wrap {
  opacity: 1; transform: translateY(0); transition-delay: 0.3s;
}
.contact.visible .contact-card:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.3s;
}
.contact.visible .contact-card:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 0.4s;
}
.contact.visible .contact-card:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 0.5s;
}
.contact.visible .contact-card:nth-child(4) {
  opacity: 1; transform: translateY(0); transition-delay: 0.6s;
}
.contact.visible .contact-map {
  opacity: 1; transform: translateY(0); transition-delay: 0.7s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .contact {
    padding: 100px 5%;
  }

  .contact-header {
    margin-bottom: 44px;
  }

  .contact-header h2 {
    font-size: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form-wrap {
    padding: 28px 22px;
  }

  .contact-map-placeholder {
    height: 160px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 70px 4%;
  }

  .contact-header h2 {
    font-size: 28px;
  }

  .contact-form-wrap {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .contact-card {
    padding: 18px 18px;
    border-radius: 16px;
    gap: 14px;
  }

  .contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .contact-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-map-placeholder {
    height: 140px;
    border-radius: 16px;
    font-size: 12px;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-header .section-tag,
  .contact-header h2,
  .contact-header p,
  .contact-form-wrap,
  .contact-card,
  .contact-map {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}