/* Installation Booking Page Styles */

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --background-light: #f9fafb;
}
#breadcrumb-root {
    margin-bottom: 20px;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:visited {
    /* keep same color after visit */
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
    color: var(--text-secondary);
}


/* Breadcrumb inside main section */
.contact-main-section #breadcrumb-root {
  max-width: 1400px;
  margin: 0 auto 16px;
  padding: 0 24px;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  /* Make the left info column wider (60%) and the contact form column smaller (40%) */
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 10px;
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* Constrain width so the form appears smaller on wide screens and align it to the right */
  max-width: 520px;
  margin-left: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.section-subtitle {
  color: #718096;
  margin-bottom: 32px;
  font-size: 1rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 24px;
  position: relative;
}

.contact-form .form-group.focused label {
  color: #3b82f6;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
}

.required {
  color: #e53e3e;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form select {
  cursor: pointer;
  background-color: white;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Validation States */
.contact-form input.input-error,
.contact-form select.input-error,
.contact-form textarea.input-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.contact-form input.input-error:focus,
.contact-form select.input-error:focus,
.contact-form textarea.input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success state removed - no green styling on valid fields */

/* Error Messages */
.error-message {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-btn {
  width: auto;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Right align the button inside the constrained form wrapper */
  margin-left: auto;
  display: block;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Messages */
.form-message {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background-color: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.form-message.error {
  background-color: #fed7d7;
  color: #742a2a;
  border: 1px solid #fc8181;
}

/* Info items in rows for compact layout */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.info-item-compact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.info-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1.1rem;
}

.info-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
  margin-top: 0;
}

.info-content p {
  color: #718096;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

.info-content a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Follow Us Row - integrated with other info rows */
.follow-us-row {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
  margin-top: 8px;
}

.follow-us-row .info-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Social links specific to contact page */
.contact-info-card .social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-info-card .social-link {
  width: 38px;
  height: 38px;
  border: 2px solid #3b82f6 !important;
  border-radius: 50%;
  background: transparent !important;
  color: #3b82f6 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-info-card .social-link:hover {
  background: #3b82f6 !important;
  color: white !important;
  transform: translateY(-3px);
}

/* Map in Contact Card */
.map-in-card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.map-in-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  margin-top: 0;
}

.map-wrapper-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-wrapper-card iframe {
  display: block;
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info-wrapper {
    position: static;
  }

  /* Stack info rows on tablets */
  .info-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper,
  .contact-info-card {
    padding: 24px;
    max-width: none;
    margin-left: 0;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Compact layout on mobile */
  .info-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .info-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .contact-main-section {
    padding: 48px 0;
  }

  .contact-form-wrapper,
  .contact-info-card {
    padding: 20px;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
