/* ============================================================
   QUOTE PAGE STYLES — Jackson Group Isuzu
   ============================================================ */

:root {
  --isuzu-red: #cc0000;
  --orange-warn: #d47a00;
  --black: #111;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-dark: #333;
  --font-main: 'Arial', sans-serif;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  position: relative;
  padding: 5rem 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* ✅ Gray background only around CTA line */
.hero-subcta-wrapper {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.hero-subcta {
  display: inline-block;
  font-size: 1rem;
  text-decoration: none;
  color: var(--white);
}

.hero-subcta span {
  color: var(--isuzu-red);
  font-weight: bold;
}

/* ============================================================
   QUOTE BUILDER SECTION
   ============================================================ */
.quote-section {
  background-color: var(--gray-light);
  padding: 4rem 1rem;
}

.quote-section .container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
}

.quote-section h2 {
  color: var(--isuzu-red);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-question {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-weight: 600;
  color: var(--gray-dark);
}

select,
input,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--isuzu-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.15);
}

/* ============================================================
   ADD-ON PANEL (connected to button)
   ============================================================ */
.addon-panel-btn {
  background-color: var(--isuzu-red);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.addon-panel-btn:hover {
  background-color: #a80000;
  transform: translateY(-1px);
}

.addon-panel {
  background-color: var(--gray-light);
  padding: 1.25rem 1.5rem;
  margin-top: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.35s ease;
}

.addon-panel:not(.hidden) {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.addon-panel.hidden {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.addon-item label {
  flex: 1;
  color: var(--gray-dark);
}

.addon-price {
  font-weight: 600;
  color: var(--isuzu-red);
}

/* ============================================================
   QUOTE RESULT BOX
   ============================================================ */
.quote-box {
  background-color: var(--white);
  border-radius: 8px;
  margin-top: 2rem;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-box:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.quote-box h3 {
  color: var(--isuzu-red);
  margin-bottom: 1rem;
}

.quote-box p {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ============================================================
   AVAILABILITY WARNINGS
   ============================================================ */
.availability-warning {
  color: var(--orange-warn);
  font-weight: 600;
  margin-top: 0.25rem;
}

.availability-none {
  color: var(--isuzu-red);
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

/* ============================================================
   VALIDATION MESSAGE
   ============================================================ */
.validation-warning {
  color: var(--isuzu-red);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   SUBMIT BUTTONS
   ============================================================ */
.quote-submit,
.modal-btn {
  background-color: var(--isuzu-red);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0.25rem;
}

.quote-submit:hover,
.modal-btn:hover {
  background-color: #a80000;
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: #666;
}

.secondary-btn:hover {
  background-color: #444;
}

/* ============================================================
   MODAL OVERLAY & FORM
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex !important;
}

.modal {
  background-color: var(--white);
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-dark);
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--isuzu-red);
}

.modal h3 {
  color: var(--isuzu-red);
  text-align: center;
  margin-bottom: 1rem;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal input,
.modal textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-main);
  resize: vertical;
}

/* ============================================================
   THANK-YOU MESSAGE (fade effect)
   ============================================================ */
.thank-you-message {
  display: none;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.thank-you-message:not(.hidden) {
  display: block;
  opacity: 1;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .quote-section .container {
    padding: 2rem 1.5rem;
  }

  .modal {
    padding: 1.5rem;
  }
}
/* ============================================================
   QUOTE PAGE STYLES — Jackson Group Isuzu
   ============================================================ */

:root {
  --isuzu-red: #cc0000;
  --orange-warn: #d47a00;
  --black: #111;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-dark: #333;
  --font-main: 'Arial', sans-serif;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  position: relative;
  padding: 5rem 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* ✅ Gray background only around CTA line */
.hero-subcta-wrapper {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.hero-subcta {
  display: inline-block;
  font-size: 1rem;
  text-decoration: none;
  color: var(--white);
}

.hero-subcta span {
  color: var(--isuzu-red);
  font-weight: bold;
}

/* ============================================================
   QUOTE BUILDER SECTION
   ============================================================ */
.quote-section {
  background-color: var(--gray-light);
  padding: 4rem 1rem;
}

.quote-section .container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
}

.quote-section h2 {
  color: var(--isuzu-red);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-question {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-weight: 600;
  color: var(--gray-dark);
}

select,
input,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--isuzu-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.15);
}

/* ============================================================
   ADD-ON PANEL (connected to button)
   ============================================================ */
.addon-panel-btn {
  background-color: var(--isuzu-red);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.addon-panel-btn:hover {
  background-color: #a80000;
  transform: translateY(-1px);
}

.addon-panel {
  background-color: var(--gray-light);
  padding: 1.25rem 1.5rem;
  margin-top: 0;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  /* animation and layout */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.3s ease;
}

.addon-panel:not(.hidden) {
  max-height: 400px;            /* fixed visible window height */
  overflow-y: auto;             /* ✅ scroll when longer */
  opacity: 1;
  transform: translateY(0);
  scrollbar-width: thin;
  scrollbar-color: var(--isuzu-red) #eaeaea;
}

/* Custom scrollbar styling for WebKit browsers */
.addon-panel:not(.hidden)::-webkit-scrollbar {
  width: 8px;
}
.addon-panel:not(.hidden)::-webkit-scrollbar-thumb {
  background-color: var(--isuzu-red);
  border-radius: 4px;
}
.addon-panel:not(.hidden)::-webkit-scrollbar-track {
  background-color: #eaeaea;
}

.addon-panel.hidden {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.addon-item label {
  flex: 1;
  color: var(--gray-dark);
}

.addon-price {
  font-weight: 600;
  color: var(--isuzu-red);
}

/* ============================================================
   QUOTE RESULT BOX
   ============================================================ */
.quote-box {
  background-color: var(--white);
  border-radius: 8px;
  margin-top: 2rem;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-box:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.quote-box h3 {
  color: var(--isuzu-red);
  margin-bottom: 1rem;
}

.quote-box p {
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ============================================================
   AVAILABILITY WARNINGS
   ============================================================ */
.availability-warning {
  color: var(--orange-warn);
  font-weight: 600;
  margin-top: 0.25rem;
}

.availability-none {
  color: var(--isuzu-red);
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

/* ============================================================
   VALIDATION MESSAGE
   ============================================================ */
.validation-warning {
  color: var(--isuzu-red);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   SUBMIT BUTTONS
   ============================================================ */
.quote-submit,
.modal-btn {
  background-color: var(--isuzu-red);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0.25rem;
}

.quote-submit:hover,
.modal-btn:hover {
  background-color: #a80000;
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: #666;
}

.secondary-btn:hover {
  background-color: #444;
}

/* ============================================================
   MODAL OVERLAY & FORM
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex !important;
}

.modal {
  background-color: var(--white);
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-dark);
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--isuzu-red);
}

.modal h3 {
  color: var(--isuzu-red);
  text-align: center;
  margin-bottom: 1rem;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal input,
.modal textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-main);
  resize: vertical;
}

/* ============================================================
   THANK-YOU MESSAGE (fade effect)
   ============================================================ */
.thank-you-message {
  display: none;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.thank-you-message:not(.hidden) {
  display: block;
  opacity: 1;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .quote-section .container {
    padding: 2rem 1.5rem;
  }

  .modal {
    padding: 1.5rem;
  }
}
