﻿/* ========== CONTACT PAGE STYLES ========== */

.contact-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, rgba(0, 128, 96, 0.03) 100%);
  min-height: 80vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* ========== FORM CONTAINER ========== */
.contact-form-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.contact-form-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

.contact-form-container h2,
.contact-info-container h2 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.contact-form-container h2::after,
.contact-info-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #008060, #0097b2);
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== INPUT STYLING - LIGHT MODE ========== */
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  background: #fafafa;
  color: #1a1a1a;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #008060;
  background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #008060;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 128, 96, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

/* Select dropdown */
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 45px;
  cursor: pointer;
}

/* Textarea */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 250px;
}

/* ========== BUTTON STYLING ========== */
.contact-form .btn {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.contact-form .btn-primary {
  background: linear-gradient(135deg, #008060 0%, #0097b2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 128, 96, 0.3);
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 96, 0.4);
}

.contact-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ========== CONTACT INFO CONTAINER ========== */
.contact-info-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.contact-info-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(5px);
}

.contact-info-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Icon Styling */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #008060, #0097b2);
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 128, 96, 0.25);
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 128, 96, 0.35);
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #1a1a1a;
  font-weight: 600;
}

.contact-details p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-details a {
  color: #008060;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: #0097b2;
  text-decoration: underline;
}

/* ========== CONTACT CTA SECTION ========== */
.contact-cta {
  background: linear-gradient(135deg, #008060 0%, #0097b2 100%);
  padding: 50px 40px;
  border-radius: 20px;
  color: white;
  margin-top: 60px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 128, 96, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-cta:hover::before {
  left: 100%;
}

.contact-cta h2,
.contact-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 700;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 150px;
}

.contact-cta .btn-primary {
  background: white;
  color: #008060;
  border: 2px solid white;
}

.contact-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-cta .btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.contact-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ============================================
   DARK MODE STYLES FOR CONTACT PAGE
   ============================================ */

body.dark-theme .contact-section,
html.dark-mode .contact-section,
html[data-theme="dark"] .contact-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

body.dark-theme .contact-form-container,
body.dark-theme .contact-info-container,
html.dark-mode .contact-form-container,
html.dark-mode .contact-info-container,
html[data-theme="dark"] .contact-form-container,
html[data-theme="dark"] .contact-info-container {
  background: #1a1a1a;
  border-color: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .contact-form-container:hover,
body.dark-theme .contact-info-container:hover,
html.dark-mode .contact-form-container:hover,
html.dark-mode .contact-info-container:hover,
html[data-theme="dark"] .contact-form-container:hover,
html[data-theme="dark"] .contact-info-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .contact-form-container h2,
body.dark-theme .contact-info-container h2,
html.dark-mode .contact-form-container h2,
html.dark-mode .contact-info-container h2,
html[data-theme="dark"] .contact-form-container h2,
html[data-theme="dark"] .contact-info-container h2 {
  color: #ffffff;
}

body.dark-theme .contact-form-container h2::after,
body.dark-theme .contact-info-container h2::after,
html.dark-mode .contact-form-container h2::after,
html.dark-mode .contact-info-container h2::after,
html[data-theme="dark"] .contact-form-container h2::after,
html[data-theme="dark"] .contact-info-container h2::after {
  background: linear-gradient(90deg, #10b981, #0ea5e9);
}

/* Dark Mode - Labels */
body.dark-theme .contact-form label,
html.dark-mode .contact-form label,
html[data-theme="dark"] .contact-form label {
  color: #e5e7eb;
}

/* Dark Mode - Inputs */
body.dark-theme .contact-form input,
body.dark-theme .contact-form select,
body.dark-theme .contact-form textarea,
html.dark-mode .contact-form input,
html.dark-mode .contact-form select,
html.dark-mode .contact-form textarea,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea {
  background: #2d2d2d;
  border-color: #404040;
  color: #f5f5f5;
}

body.dark-theme .contact-form input:hover,
body.dark-theme .contact-form select:hover,
body.dark-theme .contact-form textarea:hover,
html.dark-mode .contact-form input:hover,
html.dark-mode .contact-form select:hover,
html.dark-mode .contact-form textarea:hover,
html[data-theme="dark"] .contact-form input:hover,
html[data-theme="dark"] .contact-form select:hover,
html[data-theme="dark"] .contact-form textarea:hover {
  border-color: #10b981;
  background: #333;
}

body.dark-theme .contact-form input:focus,
body.dark-theme .contact-form select:focus,
body.dark-theme .contact-form textarea:focus,
html.dark-mode .contact-form input:focus,
html.dark-mode .contact-form select:focus,
html.dark-mode .contact-form textarea:focus,
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form select:focus,
html[data-theme="dark"] .contact-form textarea:focus {
  border-color: #10b981;
  background: #333;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

body.dark-theme .contact-form input::placeholder,
body.dark-theme .contact-form textarea::placeholder,
html.dark-mode .contact-form input::placeholder,
html.dark-mode .contact-form textarea::placeholder,
html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
  color: #6b7280;
}

/* Dark Mode - Select Arrow */
body.dark-theme .contact-form select,
html.dark-mode .contact-form select,
html[data-theme="dark"] .contact-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Dark Mode - Info Items */
body.dark-theme .contact-info-item,
html.dark-mode .contact-info-item,
html[data-theme="dark"] .contact-info-item {
  border-bottom-color: #333;
}

body.dark-theme .contact-details h3,
html.dark-mode .contact-details h3,
html[data-theme="dark"] .contact-details h3 {
  color: #ffffff;
}

body.dark-theme .contact-details p,
html.dark-mode .contact-details p,
html[data-theme="dark"] .contact-details p {
  color: #9ca3af;
}

body.dark-theme .contact-details a,
html.dark-mode .contact-details a,
html[data-theme="dark"] .contact-details a {
  color: #10b981;
}

body.dark-theme .contact-details a:hover,
html.dark-mode .contact-details a:hover,
html[data-theme="dark"] .contact-details a:hover {
  color: #34d399;
}

/* Dark Mode - Icon gradient adjustment */
body.dark-theme .contact-icon,
html.dark-mode .contact-icon,
html[data-theme="dark"] .contact-icon {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

body.dark-theme .contact-info-item:hover .contact-icon,
html.dark-mode .contact-info-item:hover .contact-icon,
html[data-theme="dark"] .contact-info-item:hover .contact-icon {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 40px 0;
  }

  .contact-form-container,
  .contact-info-container {
    padding: 30px;
  }

  .contact-form-container h2,
  .contact-info-container h2 {
    font-size: 1.4rem;
  }

  .contact-cta {
    padding: 40px 30px;
    margin-top: 40px;
  }

  .contact-cta h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .contact-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 30px 0;
  }

  .contact-form-container,
  .contact-info-container {
    padding: 20px;
    border-radius: 12px;
  }

  .contact-form-container h2,
  .contact-info-container h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .contact-form label {
    font-size: 0.8rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon i {
    font-size: 1.2rem;
  }

  .contact-details h3 {
    font-size: 1rem;
  }

  .contact-details p {
    font-size: 0.9rem;
  }

  .contact-cta {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .contact-cta h2 {
    font-size: 1.3rem;
  }
}
