/* ===== CONTACT PAGE ===== */

/* Contact Hero */
.contact-hero {
  padding: 16px 0 60px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 52px;
  color: var(--main);
  margin-bottom: 8px;
}

.contact-hero p {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-9);
  max-width: 400px;
  margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
  padding: 0 0 120px;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Card */
.contact-form-card {
  border: 1px solid var(--grey-2);
  border-radius: 24px;
  padding: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

/* Labels above inputs */
.form-label {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #40454d;
}

/* Input wrap */
.form-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--grey-2);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.form-input-wrap svg {
  flex-shrink: 0;
}

.form-input-wrap input,
.form-input-wrap select {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--main);
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-input-wrap input::placeholder {
  color: var(--grey-5);
}

.form-input-wrap select {
  color: var(--grey-5);
  cursor: pointer;
}

.form-input-wrap select option:not([disabled]) {
  color: var(--main);
}

.form-select-wrap {
  position: relative;
}

.select-chevron {
  flex-shrink: 0;
  pointer-events: none;
}

/* Textarea */
.form-textarea-wrap {
  height: auto;
  min-height: 110px;
  padding: 12px 16px;
  align-items: flex-start;
}

.form-textarea-wrap textarea {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--main);
  background: transparent;
  resize: none;
}

.form-textarea-wrap textarea::placeholder {
  color: var(--grey-5);
}

/* Submit Button */
.contact-submit-btn {
  width: 100%;
  height: 58px;
  font-size: 16px;
  font-weight: 400;
  justify-content: space-between;
  border-radius: 32px;
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-submit-btn .btn-icon-circle {
  width: 34px;
  height: 34px;
  background: var(--white);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Status */
.form-status {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 22px;
}

.form-status-success {
  background: #edf7ee;
  color: #1a7c2b;
  border: 1px solid #b8e6be;
}

.form-status-error {
  background: #fef2f2;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

/* Field Errors */
.form-error {
  display: block;
  font-size: 13px;
  color: #c0392b;
  margin-top: 4px;
  padding-left: 2px;
}

.form-input-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 1px #c0392b !important;
}

/* Car Image */
.contact-car-image {
  border-radius: 24px;
  overflow: hidden;
  background: #f7f7f7;
  position: relative;
}

.contact-car-image > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.contact-car-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: 40px;
}

.contact-car-fallback img {
  max-width: 200px;
  height: auto;
  opacity: 0.5;
}

/* ===== Contact Info Section ===== */
.contact-info-section {
  padding: 0 0 60px;
}

.contact-info-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Map Card */
.contact-map-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
}

.contact-map-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  padding: 16px 20px;
  border-radius: 20px;
  background: #fff;
  display: grid;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 576px;
  width: 100%;
  margin: 0 auto;
}

.map-overlay-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--main);
}

.map-overlay-content p {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-6);
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-btn {
  height: 48px;
  padding: 0 20px;
  font-size: 14px;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 32px;
  border: 1px solid var(--main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--main);
  font-family: 'Poppins', sans-serif;
}

/* Contact Details Card */
.contact-details-card {
  border: 1px solid var(--grey-2);
  border-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.con-inf1 {
  color: var(--main);
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.con-inf2 {
  color: var(--grey-9);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

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

.contact-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.contact-detail-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--grey-5);
}

.contact-detail-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: var(--main);
  text-decoration: none;
}

a.contact-detail-value:hover {
  opacity: 0.7;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
  .contact-hero {
    padding: 24px 0 0;
  }

  .contact-hero h1 {
    font-size: 64px;
    line-height: 76px;
  }

  .contact-hero p {
    font-size: 18px;
    line-height: 28px;
    max-width: 600px;
  }

  .contact-form-section {
    padding: 60px 0 168px;
  }

  .contact-layout {
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
  }

  .contact-form-card {
    flex: 1;
    max-width: 608px;
    width: 100%;
    min-width: 0;
    padding: 32px;
  }

  .contact-car-image {
    flex: 1;
    min-width: 0;
  }

  .contact-car-image > img {
    height: 100%;
    min-height: 520px;
  }

  .contact-car-fallback {
    height: 100%;
    min-height: 520px;
  }

  /* Info Section */
  .contact-info-section {
    padding: 0 0 168px;
  }

  .contact-info-layout {
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
  }

  .contact-map-card {
    flex: 1;
    min-width: 0;
    height: 564px;
  }

  .map-overlay {
    padding: 16px;
  }

  .map-overlay-content h3 {
    font-size: 24px;
    line-height: 34px;
  }

  .map-btn {
    height: 54px;
    padding: 0 24px;
    font-size: 16px;
  }

  .contact-details-card {
    width: 608px;
    flex-shrink: 0;
    padding: 32px;
    gap: 24px;
  }

  .contact-detail-icon {
    width: 58px;
    height: 58px;
  }

  .contact-detail-value {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 768px) {
  .map-overlay {
    max-width: 326px;
  }
}