/* ========================================================= */
/* Contact Page Styles */
/* ========================================================= */

:root {
  --primary-blue: #176bb2;
  --primary-blue-dark: #0b4a78;
  --light-gray: #f4f7fb;
  --border-color: #e0e6ed;
  --text-color: #333;
  --white: #fff;
  --input-border: #dce3e9;
  --input-focus: #176bb2;
}

/* ========================================================= */
/* Contact Info Section - 3 Cards */
/* ========================================================= */

.contact-info-section {
  padding: 60px 0;
  background: var(--white);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(23, 107, 178, 0.15);
  border-color: var(--primary-blue);
}

.contact-card .icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border-radius: 50%;
  color: var(--white);
  font-size: 30px;
  transition: transform 0.3s ease;
}

.contact-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

.contact-card p {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.contact-card a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.contact-card .link-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-card .link-button:hover {
  background: var(--primary-blue-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ========================================================= */
/* Contact Form Section */
/* ========================================================= */

.contact-form-section {
  padding: 60px 0;
}

.contact-form-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 15px;
}

.contact-form-section .section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin: 0 0 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Alert Messages */
.alert {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.alert i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-success i {
  color: #28a745;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-error i {
  color: #dc3545;
}

.alert strong {
  font-weight: 600;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Form rows for side-by-side fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group .required {
  color: #e74c3c;
  font-weight: bold;
}

/* Input fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(23, 107, 178, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Submit button */
.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit .button-primary {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(23, 107, 178, 0.3);
}

.form-submit .button-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23, 107, 178, 0.4);
}

/* ========================================================= */
/* Map Section */
/* ========================================================= */

.map-section {
  padding: 60px 0 0;
  background: var(--white);
}

.map-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 15px;
}

.map-section .section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: #666;
  margin: 0 0 40px;
}

.map-container {
  width: 100%;
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* ========================================================= */
/* Tablet Responsive (768px - 1024px) */
/* ========================================================= */

@media (max-width: 1024px) {
  .contact-info-grid {
    gap: 25px;
  }

  .contact-card {
    padding: 35px 20px;
  }

  .contact-form {
    padding: 35px;
  }
}

@media (max-width: 900px) {
  /* Stack contact info cards to 1 column on tablet */
  .contact-info-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 20px;
  }

  .contact-card {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .contact-info-section,
  .contact-form-section,
  .map-section {
    padding: 40px 0;
  }

  .contact-form-section h2,
  .map-section h2 {
    font-size: 1.8rem;
  }

  /* Single column for form fields */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

/* ========================================================= */
/* Mobile Responsive (< 640px) */
/* ========================================================= */

@media (max-width: 640px) {
  .contact-info-section,
  .contact-form-section,
  .map-section {
    padding: 30px 0;
  }

  .contact-form-section h2,
  .map-section h2 {
    font-size: 1.6rem;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .contact-card .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .contact-card h3 {
    font-size: 1.2rem;
  }

  .contact-form {
    padding: 25px 18px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .form-submit .button-primary {
    width: 100%;
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form-section h2,
  .map-section h2 {
    font-size: 1.4rem;
  }

  .contact-form-section .section-intro,
  .map-section .section-intro {
    font-size: 0.95rem;
  }

  .contact-card h3 {
    font-size: 1.1rem;
  }

  .contact-card p {
    font-size: 0.95rem;
  }
}
