/* Thank you page */

body {
  background-color: #ffffff !important;
}

.thankyou-page {
  padding: 48px 0 24px;
}

.thankyou-message {
  text-align: center;
  margin: 48px 0;
}

.thankyou-message h1,
.thankyou-message h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #212529;
}

.thankyou-message h4 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #474747;
  margin: 0;
}

.enquire {
  margin: 32px 0 64px;
}

.enquire .jumbotron {
  border-radius: 8px;
  margin-bottom: 0;
}

.bg-red {
  background: linear-gradient(to right, #ea2621 0%, #f7562e 90%) !important;
}

.enquire h1 {
  color: #fff !important;
  font-size: 41px !important;
  line-height: 47px !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  margin-bottom: 0;
}

.enquiry-btn {
  font-weight: normal;
  width: 210px;
  min-height: 30px;
  border-radius: 50px !important;
  border: 1px solid #fff;
  background: #fff !important;
  color: #e01010 !important;
  cursor: pointer;
  padding: 8px 16px !important;
  font-size: 20px !important;
  text-decoration: none !important;
  display: inline-block;
}

.enquiry-btn:hover {
  background: #f8f8f8 !important;
  color: #c00e0e !important;
}

.enquire .btn-link {
  text-decoration: underline;
}

.enquire .btn-link:hover {
  color: #fff !important;
  opacity: 0.9;
}

/* Modal */
.ty-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ty-modal.is-open {
  display: flex;
}

.ty-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ty-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.ty-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.ty-modal__header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.ty-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}

.ty-modal__body {
  padding: 20px;
}

.ty-modal__body .form-group {
  margin-bottom: 14px;
}

.ty-modal__body .form-control {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.ty-modal__body .form-control.is-invalid {
  border-color: #dc3545;
}

.ty-modal__body .invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 4px;
}

.ty-modal__body .invalid-feedback.is-visible {
  display: block;
}

.ty-modal__body .btn-submit {
  background: linear-gradient(to right, #ea2621 0%, #f7562e 90%) !important;
  border: 0;
  color: #fff;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.ty-modal__body .btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ty-modal__note {
  min-height: 1.2rem;
  margin-top: 10px;
  font-size: 0.85rem;
}

.ty-modal__note.is-error {
  color: #dc2626;
}

.ty-modal__note.is-ok {
  color: #059669;
}

@media (max-width: 576px) {
  .enquire h1 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  .enquiry-btn {
    width: 180px;
    font-size: 18px !important;
  }
}
