
/* =========================================
   MAS AVIATION - REQUEST A QUOTE POPUP
========================================= */

/* HERO QUOTE BUTTON */

.services-explore {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* POPUP WINDOW */

.quote-dialog {
  position: fixed;
  margin: auto;

  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 30px);

  padding: 0;
  border: 1px solid #e2e7ee;
  border-radius: 18px;

  background: #ffffff;
  color: #061632;

  box-shadow: 0 25px 90px rgba(6,22,50,0.3);

  overflow-y: auto;
  overscroll-behavior: contain;

  animation: quoteAppear 0.35s ease;
}

.quote-dialog::backdrop {
  background: rgba(6,22,50,0.75);
  backdrop-filter: blur(6px);
}

/* POPUP ENTRANCE */

@keyframes quoteAppear {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* INNER CONTENT */

.quote-panel {
  padding: 38px;
}

/* HEADER */

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  margin-bottom: 30px;
}

.quote-header h2 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  color: #061632;
}

.quote-header h2::first-letter {
  color: #c71930;
}

/* CLOSE BUTTON */

.quote-close {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 10px;

  background: #f4f5f7;
  color: #061632;

  font-size: 28px;
  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.quote-close:hover {
  background: #c71930;
  color: #ffffff;
  transform: rotate(90deg);
}

/* FORM LAYOUT */

#quoteForm {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quote-field label {
  font-size: 13px;
  font-weight: 800;
  color: #061632;
}

/* INPUTS */

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  min-width: 0;

  padding: 15px 16px;

  border: 1px solid #dce2eb;
  border-radius: 9px;

  background: #f7f8fa;
  color: #061632;

  font-family: inherit;
  font-size: 14px;

  outline: none;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* PLACEHOLDERS */

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #8995a5;
}

/* FOCUS EFFECT */

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  background: #ffffff;
  border-color: #c71930;
  box-shadow: 0 0 0 3px rgba(199,25,48,0.1);
}

/* SERVICE SELECTION */

.quote-field select {
  cursor: pointer;
  padding-right: 30px;
}

.quote-field select option {
  background: #ffffff;
  color: #061632;
}

/* MESSAGE BOX */

.quote-field textarea {
  resize: vertical;
  min-height: 135px;
  line-height: 1.7;
}

/* SUBMIT BUTTON */

.quote-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;

  width: 100%;
  padding: 17px;

  border: none;
  border-radius: 9px;

  background: #061632;
  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.quote-submit:hover {
  background: #c71930;
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(199,25,48,0.2);
}

/* STATUS MESSAGES */

#quoteStatus {
  padding: 14px;
  border-radius: 8px;
  background: #f4f5f7;
  color: #061632;
  border: 1px solid #e2e7ee;

  font-size: 13px;
  line-height: 1.6;
}

#quoteStatus[hidden] {
  display: none;
}

/* SMALL NOTICE */

.quote-notice {
  text-align: center;
  color: #8995a5;
  font-size: 12px;
  line-height: 1.6;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {

  .quote-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 15px;
  }

  .quote-panel {
    padding: 28px 22px;
  }

  .quote-header {
    margin-bottom: 25px;
  }

  .quote-header h2 {
    font-size: 32px;
  }

  .quote-field input,
  .quote-field select,
  .quote-field textarea {
    font-size: 16px;
  }

  .quote-submit {
    padding: 16px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .quote-dialog {
    animation: none;
  }

  .quote-close,
  .quote-submit {
    transition: none;
  }
}
