/* ============================================
   VERITECH MECHANICAL — CONTACT PAGE STYLES
   ============================================ */

.contact-hero {
  background: var(--navy);
}

/* --- Main Layout --- */
.contact-section {
  padding: 80px 0 100px;
  background-color: var(--black);
  background-image:
    linear-gradient(105deg, rgba(8,16,24,0.96) 0%, rgba(8,16,24,0.88) 50%, rgba(8,16,24,0.94) 100%),
    url('../images/truck-lift.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .contact-section {
    background-attachment: scroll;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

/* --- Inline Map Column --- */
.contact-map-col {
  display: flex;
  flex-direction: column;
}

.contact-map-embed {
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  border-top: 3px solid var(--orange);
}

.contact-map-embed .contact-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.35) brightness(0.8);
}

.contact-map-info-bar {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-map-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

/* --- Info Side --- */
.contact-block {
  margin-bottom: 48px;
}

.contact-block-label {
  margin-bottom: 10px;
}

.contact-big-link {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  line-height: 1.1;
  margin-bottom: 8px;
}
.contact-big-link:hover { color: var(--orange); }

.contact-email {
  font-size: 18px;
  word-break: break-all;
}

.contact-location {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-note {
  font-size: 13px;
  color: var(--grey-mid);
  line-height: 1.5;
}

/* Hours Table */
.contact-hours {
  margin-bottom: 48px;
}

.hours-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.hours-table td {
  font-size: 14px;
  color: var(--grey-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--white);
  font-weight: 500;
}

.emergency-row td {
  color: var(--orange) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  border-bottom: none;
}

/* Certifications */
.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cert-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(237,130,35,0.1);
  border: 1px solid rgba(237,130,35,0.3);
  padding: 6px 14px;
  border-radius: 2px;
}

/* --- Form Side --- */
.contact-form-wrap {
  background: rgba(14,31,43,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--orange);
  padding: 48px;
}

.form-header {
  margin-bottom: 40px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--white);
  margin: 10px 0 14px;
}

.form-sub {
  font-size: 14px;
  color: var(--grey-light);
  line-height: 1.65;
}

/* --- Form Elements --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 8px;
}

.required { color: var(--orange); }

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-input:focus {
  border-color: var(--orange);
  background: rgba(237,130,35,0.05);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #e55;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ed8223' d='M8 11L2 5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

.form-select option {
  background: var(--navy);
  color: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-label {
  cursor: pointer;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: rgba(255,255,255,0.03);
}

.radio-label input[type="radio"]:checked + .radio-btn {
  border-color: var(--orange);
  color: var(--white);
  background: rgba(237,130,35,0.1);
}

.radio-label:hover .radio-btn {
  border-color: rgba(237,130,35,0.4);
  color: var(--white);
}

/* Submit */
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
}

.submit-arrow {
  transition: transform var(--transition);
}

.form-submit:hover .submit-arrow {
  transform: translateX(6px);
}

.form-submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-legal {
  font-size: 12px;
  color: var(--grey-mid);
  line-height: 1.6;
  text-align: center;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(237,130,35,0.15);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.success-msg {
  font-size: 16px;
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.success-emergency {
  font-size: 14px;
  color: var(--grey-mid);
}
.success-emergency a {
  color: var(--orange);
  font-weight: 700;
}
.success-emergency a:hover { text-decoration: underline; }

/* --- Emergency Band --- */
.emergency-band {
  padding: 80px 0;
  background: var(--navy);
  border-top: 1px solid rgba(237,130,35,0.2);
}

.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.emergency-pulse {
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(237,130,35,0.5);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(237,130,35,0.5); }
  70%  { box-shadow: 0 0 0 20px rgba(237,130,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(237,130,35,0); }
}

.emergency-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  margin-top: 10px;
}

.emergency-btn {
  flex-shrink: 0;
  font-size: 16px;
  padding: 20px 40px;
  white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-map-embed { min-height: 260px; flex: none; height: 260px; }
    gap: 48px;
  }
  .emergency-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .emergency-pulse { display: none; }
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 24px; }
  .contact-big-link { font-size: 22px; }
}

/* --- Prominent Map Section --- */
.contact-map-section {
  background: var(--navy);
}

.contact-map-frame-wrap {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.35) brightness(0.8);
}

.contact-map-bar {
  background: var(--navy-mid);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 28px 0;
}

.contact-map-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-map-details {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-map-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-map-detail-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-map-detail-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.contact-map-detail-value {
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.4;
}

.contact-map-phone {
  color: var(--off-white);
  transition: color var(--transition);
}

.contact-map-phone:hover { color: var(--orange); }

.contact-directions-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .contact-map-frame-wrap { height: 300px; }
  .contact-map-bar-inner { flex-direction: column; align-items: flex-start; }
  .contact-map-details { gap: 24px; flex-direction: column; }
  .contact-directions-btn { width: 100%; justify-content: center; }
}

@media (max-width: 580px) {
  .contact-map-frame-wrap { height: 240px; }
}
