/* ========================================
   Contact Page - iTimTravel
   ======================================== */

/* ---------- Hero Section ---------- */
.contact-hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 40%, #42a5f5 100%);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
}

@keyframes patternDrift {
  0% {
    background-position:
      0 0,
      30px 30px;
  }
  100% {
    background-position:
      60px 60px,
      90px 90px;
  }
}

/* floating travel icons */
.contact-hero-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-hero-icons i {
  position: absolute;
  color: rgba(255, 255, 255, 0.07);
  font-size: 2rem;
  animation: floatIcon 6s ease-in-out infinite;
}

.contact-hero-icons i:nth-child(1) {
  top: 15%;
  left: 8%;
  font-size: 2.5rem;
  animation-delay: 0s;
}
.contact-hero-icons i:nth-child(2) {
  top: 25%;
  right: 12%;
  font-size: 1.8rem;
  animation-delay: 1s;
}
.contact-hero-icons i:nth-child(3) {
  bottom: 20%;
  left: 15%;
  font-size: 2.2rem;
  animation-delay: 2s;
}
.contact-hero-icons i:nth-child(4) {
  top: 10%;
  left: 35%;
  font-size: 1.6rem;
  animation-delay: 0.5s;
}
.contact-hero-icons i:nth-child(5) {
  bottom: 15%;
  right: 20%;
  font-size: 2rem;
  animation-delay: 1.5s;
}
.contact-hero-icons i:nth-child(6) {
  top: 40%;
  left: 5%;
  font-size: 1.5rem;
  animation-delay: 3s;
}
.contact-hero-icons i:nth-child(7) {
  top: 20%;
  right: 30%;
  font-size: 1.8rem;
  animation-delay: 2.5s;
}
.contact-hero-icons i:nth-child(8) {
  bottom: 30%;
  right: 8%;
  font-size: 2.4rem;
  animation-delay: 0.8s;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.contact-hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero-title {
  font-family: Prompt-Bold, sans-serif;
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.contact-hero-subtitle {
  font-family: Prompt-Regular, sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  font-weight: 400;
}

.contact-hero-plane {
  position: absolute;
  top: 30px;
  right: 5%;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.15);
  transform: rotate(-20deg);
  animation: planeFly 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes planeFly {
  0%,
  100% {
    transform: rotate(-20deg) translateY(0);
  }
  50% {
    transform: rotate(-20deg) translateY(-12px);
  }
}

/* ---------- Contact Info Cards ---------- */
.contact-cards-section {
  margin-top: -35px;
  position: relative;
  z-index: 10;
  padding-bottom: 10px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 16px 22px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 71, 161, 0.06);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(13, 71, 161, 0.15);
}

.contact-info-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  box-shadow: 0 4px 14px rgba(25, 118, 210, 0.35);
  transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-info-card-icon {
  transform: scale(1.1);
}

/* LINE icon special */
.contact-info-card-icon.icon-line {
  background: linear-gradient(135deg, #06c755 0%, #00b843 100%);
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.5px;
}

/* Email icon */
.contact-info-card-icon.icon-email {
  background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
}

/* Clock icon */
.contact-info-card-icon.icon-clock {
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.contact-info-card-label {
  font-family: Prompt-Bold, sans-serif;
  font-size: 16px;
  color: #333;
  margin: 0;
}

.contact-info-card a {
  color: #333;
  transition: color 0.3s ease;
}

.contact-info-card a:hover {
  color: #1976d2;
}

/* ---------- Main Contact Section ---------- */
.contact-main-section {
  padding: 40px 0 60px;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(13, 71, 161, 0.05);
  height: 100%;
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-form-label {
  display: block;
  font-family: Prompt-Regular, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: Prompt-Regular, sans-serif;
  font-size: 15px;
  color: #333;
  background: #f6fbff;
  border: 1.5px solid #e0ecf5;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  border-color: #42a5f5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.15);
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: #aab;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 30px;
  font-family: Prompt-Bold, sans-serif;
  font-size: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.3);
  margin-top: 8px;
}

.contact-form-submit:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0a3a80 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13, 71, 161, 0.4);
}

.contact-form-submit:active {
  transform: translateY(0);
}

.contact-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form-submit i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.contact-form-submit:hover i {
  transform: translateX(4px);
}

/* ---------- Map & Address ---------- */
.contact-map-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-map-box {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(13, 71, 161, 0.05);
  flex: 1;
}

.contact-map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  display: block;
}

.contact-address-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(13, 71, 161, 0.05);
}

.contact-address-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-address-item:last-child {
  margin-bottom: 0;
}

.contact-address-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
  margin-top: 2px;
}

.contact-address-label {
  font-family: Prompt-Bold, sans-serif;
  font-size: 14px;
  color: #1976d2;
  margin-bottom: 2px;
}

.contact-address-text {
  font-family: Prompt-Regular, sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ---------- Form Success / Error Messages ---------- */
.contact-msg {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}

.contact-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  display: block;
}

.contact-msg.error {
  background: #ffeef0;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-hero-title {
    font-size: 38px;
  }

  .contact-hero-plane {
    display: none;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    padding: 45px 0 35px;
  }

  .contact-hero-title {
    font-size: 32px;
  }

  .contact-hero-subtitle {
    font-size: 15px;
  }

  .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .contact-info-card {
    padding: 20px 12px 16px;
  }

  .contact-info-card-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .contact-info-card-label {
    font-size: 13px;
  }

  .contact-cards-section {
    margin-top: -25px;
  }

  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .contact-map-box iframe {
    height: 250px;
  }

  .contact-main-section {
    padding: 30px 0 45px;
  }
}

@media (max-width: 480px) {
  .contact-info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-hero-title {
    font-size: 28px;
  }

  .contact-info-card-label {
    font-size: 12px;
  }
}

/* ---------- Loading Spinner ---------- */
.contact-form-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.contact-form-submit.loading .spinner {
  display: inline-block;
}

.contact-form-submit.loading i {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
