/* ============================================
   Contact Page - Specific Styles Only
   Shared styles are in All.css
   ============================================ */

/* Main Content */
.contact-main {
  padding: 40px 0;
  text-align: center;
}

.contact-main h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary-color);
  margin-bottom: var(--space-heading-after, 0.65em);
}

.contact-main p {
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.contact-form #contactForm {
  max-width: 510px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
  .contact-form #contactForm {
    max-width: 100%;
    padding: 20px;
    margin: 0 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contact-form #contactForm {
    max-width: 600px;
  }
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  left: 0;
}

.contact-form #contactForm input[type="text"],
.contact-form #contactForm input[type="email"],
.contact-form #contactForm textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  transition: var(--transition);
  color: #1a1a1a;
  background-color: #ffffff;
  background-clip: padding-box;
}

.contact-form #contactForm input::placeholder,
.contact-form #contactForm textarea::placeholder {
  color: #6c757d;
  opacity: 1;
}

.contact-form #contactForm input[type="text"]:focus,
.contact-form #contactForm input[type="email"]:focus,
.contact-form #contactForm textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.contact-form #contactForm textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Cards */
.contact-container {
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 35px;
}

.contact-item {
  perspective: 1000px;
  width: 340px;
}

.contact-card {
  width: 350px;
  height: 430px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.contact-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Affiliates / partners — flip cards */
.affiliates-section {
  padding: 50px 0 30px;
  background: var(--bg-light);
}

.affiliates-section h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.affiliates-section > .container > p {
  color: var(--text-color);
  margin-bottom: 2rem;
}

.affiliates-grid {
  display: flex;
  gap: 40px;
  
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

.field-error {
  display: block;
  color: var(--error-color, #dc3545);
  font-size: 0.875rem;
  margin-top: 6px;
  text-align: left;
}

.contact-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: var(--bg-light);
  color: var(--text-light);
}

.contact-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: rotateY(180deg);
}

.contact-item2 .contact-photo {
  width: 78%;
  height: 285px;
  flex-shrink: 0;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  position: relative;
  left: 30px;
}

.contact-item2 .contact-photo img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
}

.contact-card.flipped {
  transform: rotateY(180deg);
}

.contact-front h3 {
  padding-top: 10px;
}

/* Modal Enhancements for Contact Page (scoped; avoid global modal conflicts) */
#responseModal .modal-content {
  background-color: #fff;
  padding: 1.25rem 1.25rem 0;
  border-radius: 10px;
  width: min(92vw, 560px);
  max-width: 560px;
  min-height: 140px;
  max-height: min(88vh, 520px);
  margin: 8vh auto;
  text-align: center;
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#responseModal .modal-content .response-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0.75rem;
}

#responseModal .response-modal-timer {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 -1.25rem;
  width: calc(100% + 2.5rem);
  flex-shrink: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

#responseModal .response-modal-timer-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform-origin: left center;
  border-radius: 0 0 0 2px;
}

#responseModal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}

#responseModal .close:hover {
  color: var(--error-color);
}

#responseModal #responseMessage {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  line-height: 1.5;
  word-break: break-word;
  margin: 2.5rem 0 0.5rem;
  text-align: left;
}

#responseModal #responseMessage.success-message {
  color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.12);
  border: 1px solid rgba(40, 167, 69, 0.35);
  border-left: 5px solid var(--success-color);
}

#responseModal #responseMessage.error-message {
  color: var(--error-color);
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-left: 5px solid var(--error-color);
}

#responseModal.modal--success .modal-content {
  border-top: 4px solid var(--success-color);
}

#responseModal.modal--error .modal-content {
  border-top: 4px solid var(--error-color);
}

.success-message {
  color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 5px solid var(--success-color);
  padding: 10px;
  margin-top: 35px;
}

.error-message {
  color: var(--error-color);
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 5px solid var(--error-color);
  padding: 10px;
  margin-top: 10px;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
  }
  to {
    transform: translateY(0);
  }
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.map-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.map-section > .container > p {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: var(--text-light);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.map-info {
  background: var(--text-light);
  padding: 25px;
  border-top: 3px solid var(--primary-color);
}

.map-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-info h3 i {
  color: var(--error-color);
  font-size: 1.3rem;
}

.map-info p {
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.map-info p strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Map Styles */
@media (max-width: 768px) {
  .map-container iframe {
    height: 350px;
  }
  
  .map-info {
    padding: 20px;
  }
  
  .map-info h3 {
    font-size: 1.3rem;
  }
  
  .map-section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .map-container iframe {
    height: 300px;
  }
  
  .map-info {
    padding: 15px;
  }
  
  .map-info h3 {
    font-size: 1.2rem;
  }
}
