/* Contact Page Styles */
.contact-page {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--jm-color-text);
  line-height: 1.6;
}

/* Center all content within contact page sections */
.contact-page section {
  text-align: center;
}

/* Center all text elements */
.contact-page section h1,
.contact-page section h2,
.contact-page section h3,
.contact-page section p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure containers are properly centered */
.contact-page section .home-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Center contact details */
.contact-details {
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
}

.contact-details p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.contact-details strong {
  display: block;
  text-align: center;
  margin-bottom: 4px;
}

/* Center strength list */
.strength-list {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.strength-list li {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Center contact form */
.quote-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* Center form labels and inputs */
.quote-form .form-row {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.quote-form .form-row label {
  text-align: left;
  display: block;
  margin-bottom: 8px;
}

.quote-form .form-row input,
.quote-form .form-row textarea,
.quote-form .form-row input[type="file"] {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Center form button */
.quote-form button {
  display: block;
  margin: 24px auto 0;
  width: 100%;
  max-width: 200px;
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

/* Contact Card Styles */
.contact-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Map Container */
.map-container {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  display: block;
  flex-grow: 1;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Contact Details Card */
.contact-details-card {
  background: var(--jm-color-bg-light);
}

/* Map Card */
.contact-map-card {
  background: #ffffff;
}

/* Card Headings */
.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--jm-color-primary);
  text-align: center;
}

/* Map Container */
.map-container {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

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

/* Contact Details in Card */
.contact-card .contact-details {
  text-align: left;
  margin: 0;
  max-width: 100%;
}

.contact-card .contact-details p {
  text-align: left;
  margin-bottom: 16px;
  margin-left: 0;
  margin-right: 0;
}

.contact-card .contact-details strong {
  display: block;
  text-align: left;
  margin-bottom: 4px;
  width: auto;
}

/* Responsive Design for Contact Grid */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-card {
    padding: 24px;
  }
  
  .map-container iframe {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 20px;
  }
  
  .map-container iframe {
    height: 200px;
  }
}

/* Center CTA button */
.home-cta a {
  display: inline-block;
  margin: 0 auto;
}

/* Contact Hero Section */
.contact-hero {
  background: var(--jm-color-primary);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/banner-1.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}

.contact-hero .home-inner {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  color: white !important;
  margin-bottom: 24px;
  font-size: 3.2rem;
  font-weight: 700;
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

/* Strength Section */
.contact-strength {
  padding: 80px 0;
  background: #ffffff;
}

.contact-strength h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--jm-color-primary);
}

.contact-strength > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  color: var(--jm-color-secondary);
  font-size: 1.1rem;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.strength-list li {
  text-align: center;
  font-size: 1.1rem;
  padding: 24px;
  background: var(--jm-color-bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.strength-list li:hover {
  background: #f1f3f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.strength-list strong {
  display: block;
  color: var(--jm-color-primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Contact Info Section */
.contact-info {
  padding: 80px 0;
  background: var(--jm-color-bg-light);
}

.contact-info h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--jm-color-primary);
}

.contact-info > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  color: var(--jm-color-secondary);
  font-size: 1.1rem;
}

.contact-details {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-details p {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.contact-details strong {
  color: var(--jm-color-primary);
  display: inline-block;
  width: 120px;
}

/* Contact Form Section */
.contact-form {
  padding: 60px 0;
  background: #ffffff;
}

.contact-form h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--jm-color-primary);
}

.contact-form > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
  color: var(--jm-color-secondary);
  font-size: 1.1rem;
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--jm-color-bg-light);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--jm-color-text);
}

.form-row .required {
  color: var(--jm-color-danger);
  margin-left: 4px;
}

.form-row .file-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--jm-color-secondary);
}

.form-response {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.form-response.success {
  background-color: #e3fcef;
  color: #10b981;
  border: 1px solid #bbf7d0;
}

.form-response.error {
  background-color: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background-color: #ffffff;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="tel"]:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--jm-color-primary);
  box-shadow: 0 0 0 2px rgba(var(--jm-color-primary-rgb), 0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row input[type="file"] {
  padding: 8px;
  border: 1px dashed #dadce0;
  border-radius: 4px;
  width: 100%;
  background: #ffffff;
  transition: all 0.3s ease;
}

.form-row input[type="file"]:hover {
  border-color: var(--jm-color-primary);
  background: var(--jm-color-bg-light);
}

.quote-form button {
  background: var(--jm-color-primary);
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
}

.quote-form button:hover {
  background: var(--jm-color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--jm-color-primary-rgb), 0.3);
}

.quote-form button:active {
  transform: translateY(0);
}

/* CTA Section */
.home-cta {
  background: var(--jm-color-primary);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/banner-1.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}

.home-cta .home-inner {
  position: relative;
  z-index: 1;
}

.home-cta h2 {
  color: white !important;
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.home-cta p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.home-cta a {
  display: inline-block;
  background: white;
  color: var(--jm-color-primary);
  text-decoration: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-cta a:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 900px) {
  .contact-hero,
  .home-cta {
    padding: 80px 0;
  }
  
  .contact-hero h1,
  .home-cta h2 {
    font-size: 2.2rem;
  }
  
  .contact-hero p,
  .home-cta p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .contact-hero h1,
  .contact-strength h2,
  .contact-info h2,
  .contact-form h2,
  .home-cta h2 {
    font-size: 1.8rem;
  }

  .contact-hero p,
  .contact-strength > p,
  .contact-info > p,
  .contact-form > p,
  .home-cta p {
    font-size: 1rem;
  }

  .strength-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .strength-list li {
    padding: 16px;
    font-size: 1rem;
  }

  .strength-list strong {
    font-size: 1.2rem;
  }

  .contact-details,
  .quote-form {
    padding: 24px;
    margin: 0 16px;
  }

  .contact-details p {
    font-size: 1rem;
  }

  .contact-details strong {
    width: 100px;
  }

  .quote-form button {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .home-cta {
    padding: 60px 0;
  }

  .home-cta a {
    padding: 14px 32px;
    font-size: 1rem;
  }
  
  .contact-hero,
  .contact-strength,
  .contact-info,
  .contact-form {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .contact-hero,
  .home-cta {
    padding: 60px 0;
  }
  
  .contact-hero h1,
  .home-cta h2 {
    font-size: 1.6rem;
  }
  
  .strength-list {
    grid-template-columns: 1fr;
  }

  .contact-details strong {
    display: block;
    margin-bottom: 4px;
    width: auto;
  }
}