/* ==========================================================================
   CONTACT PAGE STYLESHEET
   contact.html only. Loaded after common.css and content.css.
   ========================================================================== */

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid #e7eaee;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 48, 135, 0.08);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 48, 135, 0.14);
}

.contact-form-wrapper .form-label {
  font-weight: 600;
  color: var(--primary);
}

.contact-form-wrapper .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: clamp(8px, 1vw, 10px);
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 8px rgba(227, 6, 19, 0.3);
}

.contact-form-wrapper textarea { resize: vertical; }

.contact-form-wrapper .input-group-text {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.contact-form-wrapper .btn-primary {
  background: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.contact-form-wrapper .btn-primary:hover {
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.4);
}

/* Branch contact list + PDF download list */
.depot-contacts,
.map-section {
  padding: clamp(20px, 2vw, 40px) 0;
}

.depot-contacts .list-group-item {
  padding: clamp(10px, 1vw, 12px);
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  background: var(--white);
  border: 1px solid #e7eaee;
  box-shadow: 0 2px 8px rgba(0, 48, 135, 0.05);
}

.depot-contacts .list-group-item:hover {
  background: #eef4ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 48, 135, 0.12);
}

.depot-contacts .list-group-item:hover a { color: var(--secondary); }

.depot-contacts h4 {
  color: var(--success);
  margin-bottom: 1rem;
}

.depot-info,
.pdf-form {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pdf-form {
  text-align: center;
  padding: clamp(20px, 2vw, 40px);
}

.pdf-form .list-group-item {
  border: none;
  padding: clamp(10px, 2vw, 15px);
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.pdf-form .list-group-item:hover { background: rgba(0, 48, 135, 0.1); }

/* --------------------------------------------------------------------------
   Page layout: hero spacing, branch contact cards, map, rate table
   -------------------------------------------------------------------------- */
.contact-section {
  padding-bottom: 0;
  border-radius: 15px;
  margin: 20px;
  background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 100%);
}

.section-spacing { padding: clamp(40px, 5vw, 60px) 0; }

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--dark);
  margin-bottom: clamp(20px, 3vw, 30px);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.custom-icon {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-right: 5px;
  color: var(--secondary);
}

.depot-name {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.depot-address {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--dark);
  margin-bottom: clamp(15px, 2vw, 20px);
  text-align: center;
}

.map-container {
  height: clamp(300px, 50vw, 400px);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.map-container iframe { border-radius: 10px; }

.map-section {
  padding: clamp(20px, 2vw, 40px) 0;
  background: #e9ecef;
}

/* Branch PDF / rate table */
.table-custom {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 3px solid var(--primary);
}

.table-custom thead th {
  background: var(--primary);
  color: var(--white);
  padding: clamp(10px, 2vw, 15px);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.table-custom tbody td {
  padding: clamp(8px, 1vw, 10px);
  border: 1px solid var(--primary);
}

.table-custom tbody tr td:nth-child(3) { word-break: break-word; }

.table-custom tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.15);
  transition: background-color 0.3s;
}

.table-custom tbody a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s, font-weight 0.3s;
}

.table-custom tbody a:hover {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    transition: none;
  }
  .contact-form-wrapper:hover { transform: none; box-shadow: none; }
  .contact-form-wrapper .row { padding: 1rem; margin: 0; }
  .contact-form-wrapper .form-control { font-size: clamp(0.85rem, 2.5vw, 0.95rem); padding: clamp(6px, 1vw, 8px); }
  .contact-form-wrapper .btn-primary { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}
