/* ============================================================
   AD LOGISTICS - CONTACT PAGE (FINAL EDITION)
   ============================================================ */

/* ===== HERO ===== */
.adlog-contact-hero {
  background: linear-gradient(180deg, #01070f 0%, #04101c 100%);
  padding: 6rem 2rem 3rem;
  text-align: center;
  color: #cbd5df;
}

.adlog-contact-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00e7e0, #f9b234);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: adlog-title-gradient 6s linear infinite;
  margin-bottom: 0.8rem;
}

.adlog-contact-title span {
  color: #00e7e0;
  text-shadow: 0 0 15px rgba(0,231,224,0.5);
}

.adlog-contact-subtext {
  font-size: 1rem;
  color: #b6c2cc;
  max-width: 650px;
  margin: 0 auto;
}

/* ===== MAIN CONTAINER ===== */
.adlog-contact-main {
  background: linear-gradient(180deg, #04101c 0%, #01070f 100%);
  padding: 5rem 2rem;
  color: #cbd5df;
}

.adlog-contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ===== FORM ===== */
.adlog-contact-form {
  flex: 1;
  min-width: 320px;
  background: rgba(10,18,28,0.7);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(0,231,224,0.1);
  border: 1px solid rgba(0,231,224,0.08);
  position: relative;
  overflow: hidden;
}

.adlog-contact-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, #00e7e0, #f9b234, #00e7e0);
  background-size: 300% 300%;
  animation: adlog-border-pulse 10s linear infinite;
  z-index: 0;
  border-radius: 18px;
  opacity: 0.25;
}

.adlog-contact-form h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  color: #00e7e0;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

/* ===== FLOATING LABEL FORM ===== */
.form-group {
  position: relative;
  margin-bottom: 1.6rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8ecef;
  border-radius: 10px;
  padding: 1rem 0.8rem 0.6rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: #b6c2cc;
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* FLOAT EFFECT */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
  top: -8px;
  left: 0.7rem;
  font-size: 0.75rem;
  color: #00e7e0;
  background: #01070f;
  padding: 0 0.3rem;
}

/* SELECT FIELD FIX */
.select-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  background-color: rgba(10, 18, 28, 0.9);
}

.select-group::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #f9b234;
  font-size: 0.8rem;
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.select-group:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
  color: #00e7e0;
}

.form-group select option {
  background: #04101c;
  color: #e8ecef;
}

/* FIELD EFFECTS */
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(0,231,224,0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #00e7e0;
  box-shadow: 0 0 10px rgba(0,231,224,0.3);
  outline: none;
}

/* ===== SUBMIT BUTTON ===== */
.adlog-contact-btn {
  background: linear-gradient(90deg, #00e7e0, #f9b234);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 1rem 2.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.adlog-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,231,224,0.4);
}

/* ===== SUCCESS OVERLAY ===== */
.adlog-form-success {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 15, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: all 0.6s ease;
  text-align: center;
  color: #e8ecef;
  z-index: 5;
}

.adlog-form-success.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.adlog-form-success .success-icon {
  font-size: 3.5rem;
  color: #00e7e0;
  margin-bottom: 1rem;
  animation: success-pop 0.7s ease forwards;
}

.adlog-form-success h3 {
  font-family: "Orbitron", sans-serif;
  color: #00e7e0;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.adlog-form-success p {
  color: #b6c2cc;
  font-size: 0.95rem;
  max-width: 350px;
}

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== INFO ===== */
.adlog-contact-info {
  flex: 0.8;
  min-width: 280px;
}

.adlog-contact-info h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  color: #f9b234;
  margin-bottom: 1rem;
}

.adlog-contact-info p {
  margin-bottom: 1rem;
  color: #cbd5df;
  font-size: 0.95rem;
  line-height: 1.6;
}

.adlog-contact-info i {
  color: #00e7e0;
  margin-right: 8px;
}

.adlog-contact-socials a {
  color: #00e7e0;
  margin-right: 12px;
  font-size: 1.4rem;
  transition: 0.3s;
}

.adlog-contact-socials a:hover {
  color: #f9b234;
  text-shadow: 0 0 10px rgba(249,178,52,0.4);
}

/* ===== MAP ===== */
.adlog-contact-map {
  margin-top: 4rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,231,224,0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes adlog-title-gradient {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

@keyframes adlog-border-pulse {
  0% { background-position: 0% 50%; opacity: 0.2; }
  50% { background-position: 100% 50%; opacity: 0.4; }
  100% { background-position: 0% 50%; opacity: 0.2; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .adlog-contact-container {
    flex-direction: column;
    align-items: center;
  }

  .adlog-contact-info, .adlog-contact-form {
    width: 100%;
  }

  .adlog-contact-title {
    font-size: 2.1rem;
  }
}

/* Prevent label overlap when select is empty */
.select-group select:invalid + label {
  color: #b6c2cc;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
}
