/* =======================================================
   CONTACT PAGE STYLING
   ======================================================= */

.contact-page-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 20px;
  min-height: 80vh;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Left Side - Contact Information */
.contact-info-section {
  background: linear-gradient(135deg, #005b96 0%, #017cba 100%);
  color: #ffffff;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.contact-info-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-info-content {
  position: relative;
  z-index: 2;
}

.contact-title {
  font-family: "Lora", "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 50px;
  opacity: 0.95;
  font-weight: 300;
}

/* Contact Methods */
.contact-methods {
  margin-bottom: 50px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
  transition: transform 0.3s ease;
}

.contact-method:hover {
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.email-icon {
  background: #ea4335 !important; /* Gmail Red */
  box-shadow: 0 8px 20px rgba(234, 67, 53, 0.3);
}

.phone-icon {
  background: #4caf50 !important; /* Material Green */
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.whatsapp-icon {
  background: #25d366 !important; /* WhatsApp Green */
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.telegram-icon {
  background: #0088cc !important; /* Telegram Blue */
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.location-icon {
  background: #f39c12 !important; /* Location Orange */
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.contact-details h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
  opacity: 0.9;
}

.contact-details a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.contact-details a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Business Hours */
.business-hours {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.business-hours h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 15px 0;
  font-family: "Lora", Georgia, serif;
}

.business-hours p {
  font-size: 14px;
  margin: 8px 0;
  opacity: 0.9;
  font-weight: 300;
}

/* Right Side - Contact Form */
.contact-form-section {
  padding: 60px 50px;
}

.contact-form-wrapper h2 {
  font-family: "Lora", "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #0b132b;
  margin: 0 0 15px 0;
  letter-spacing: -0.02em;
}

.form-description {
  color: #5d6d7e;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Status Messages */
.contact-message {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-message.success {
  background: rgba(39, 174, 96, 0.1);
  border: 2px solid #27ae60;
  color: #27ae60;
}

.contact-message.error {
  background: rgba(231, 76, 60, 0.1);
  border: 2px solid #e74c3c;
  color: #e74c3c;
}

/* Form Styling */
.custom-contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #0b132b;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Lato", "Inter", sans-serif;
  color: #0b132b;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #005b96;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 91, 150, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Submit Button */
.submit-button {
  background: linear-gradient(135deg, #005b96 0%, #017cba 100%);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 124, 186, 0.3);
  align-self: flex-start;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 124, 186, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button svg {
  transition: transform 0.3s ease;
}

.submit-button:hover svg {
  transform: translateX(3px);
}

/* Contact Form 7 Overrides */
.contact-form-section .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-form-section .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form-section .wpcf7-form input[type="text"],
.contact-form-section .wpcf7-form input[type="email"],
.contact-form-section .wpcf7-form input[type="tel"],
.contact-form-section .wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Lato", "Inter", sans-serif;
  color: #0b132b;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.contact-form-section .wpcf7-form input:focus,
.contact-form-section .wpcf7-form textarea:focus {
  outline: none;
  border-color: #005b96;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 91, 150, 0.08);
}

.contact-form-section .wpcf7-submit {
  background: linear-gradient(135deg, #005b96 0%, #017cba 100%);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 124, 186, 0.3);
}

.contact-form-section .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 124, 186, 0.4);
}

/* Validation Messages */
.contact-form-section .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
}

.contact-form-section .wpcf7-response-output {
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 20px;
  font-size: 14px;
}

.contact-form-section .wpcf7-mail-sent-ok {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

.contact-form-section .wpcf7-validation-errors {
  border-color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-container {
    max-width: 95%;
    gap: 0;
  }
}

@media (max-width: 991px) {
  .contact-container {
    grid-template-columns: 1fr; /* Stack vertically */
    display: flex;
    flex-direction: column;
  }

  .contact-info-section {
    padding: 50px 40px;
    text-align: center; /* Center align info on mobile */
  }

  .contact-info-section::before {
    width: 150%;
    height: 150%;
    top: -25%;
    right: -25%;
  }

  .contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for contact methods */
    gap: 20px;
    text-align: left;
    margin-bottom: 40px;
  }

  .contact-method {
    margin-bottom: 0; /* Reset margin */
    justify-content: center; /* Center content in grid item if needed, but flex-start looks better usually */
    justify-content: flex-start;
  }

  .business-hours {
    text-align: center;
  }

  .contact-form-section {
    padding: 50px 40px;
  }

  .contact-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .contact-subtitle {
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .contact-page-wrapper {
    padding: 30px 15px;
    min-height: auto;
  }

  .contact-container {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .contact-info-section {
    padding: 40px 25px;
  }

  .contact-methods {
    grid-template-columns: 1fr; /* Stack contact methods on smaller screens */
    gap: 25px;
  }

  .contact-form-section {
    padding: 40px 25px;
  }

  .contact-title {
    font-size: 32px;
  }

  .contact-form-wrapper h2 {
    font-size: 28px;
  }

  .contact-method {
    margin-bottom: 0;
  }

  .submit-button,
  .contact-form-section .wpcf7-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-info-section,
  .contact-form-section {
    padding: 35px 20px;
  }

  .contact-title {
    font-size: 28px;
  }

  .contact-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .contact-form-wrapper h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .form-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-details h3 {
    font-size: 13px;
  }

  .contact-details a {
    font-size: 15px;
  }

  .form-group input,
  .form-group textarea,
  .contact-form-section .wpcf7-form input[type="text"],
  .contact-form-section .wpcf7-form input[type="email"],
  .contact-form-section .wpcf7-form input[type="tel"],
  .contact-form-section .wpcf7-form textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}
