/* ==============================================================
   Technoally - Get a Quote Modal & Button Styles
   ============================================================== */

/* --- Header "Get a Quote" Button --- */
.quote-btn {
  background: linear-gradient(135deg, #ffc451 0%, #e09f1f 100%) !important;
  color: #151515 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  border: 2px solid #ffc451 !important;
  box-shadow: 0 4px 15px rgba(255, 196, 81, 0.35);
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease !important;
  position: relative;
  z-index: 998;
  text-decoration: none !important;
}

.quote-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.quote-btn:hover {
  background: #ffffff !important;
  color: #151515 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 196, 81, 0.5);
}

.quote-btn:hover i {
  transform: scale(1.15);
}

/* Mobile responsive header layout */
@media (max-width: 991px) {
  .header-cta-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 50px; /* Space for mobile nav toggle button */
  }

  .quote-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
  }
}

@media (max-width: 480px) {
  .quote-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
  .quote-btn span.quote-text-full {
    display: none;
  }
  .quote-btn span.quote-text-short {
    display: inline;
  }
}

@media (min-width: 481px) {
  .quote-btn span.quote-text-short {
    display: none;
  }
}

/* --- Quote Modal Dialog & Backdrop Hierarchy --- */
#quoteModal {
  z-index: 105000 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.modal-backdrop {
  z-index: 104990 !important;
}

.modal-backdrop.show,
.modal-backdrop.in {
  opacity: 0.75 !important;
  backdrop-filter: blur(6px);
  background-color: rgba(15, 15, 15, 0.75) !important;
}

#quoteModal .modal-dialog {
  max-width: 720px;
  margin: 30px auto;
  transition: transform 0.3s ease-out;
  position: relative !important;
  z-index: 105001 !important;
  pointer-events: auto !important;
}

#quoteModal.modal.fade .modal-dialog {
  transform: scale(0.95) translateY(-20px);
}

#quoteModal.modal.show .modal-dialog,
#quoteModal.modal.in .modal-dialog {
  transform: scale(1) translateY(0);
}

#quoteModal .modal-content {
  background: #ffffff !important;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 81, 0.4) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative !important;
  z-index: 105002 !important;
  pointer-events: auto !important;
}

/* Modal Header */
#quoteModal .modal-header {
  background: linear-gradient(135deg, #18191d 0%, #22242a 100%);
  color: #ffffff;
  padding: 22px 28px 18px;
  border-bottom: 2px solid #ffc451;
  position: relative;
  z-index: 2;
}

#quoteModal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#quoteModal .modal-title i {
  color: #ffc451;
  font-size: 24px;
}

#quoteModal .modal-subtitle {
  font-size: 13px;
  color: #a4a7b5;
  margin: 4px 0 0 34px;
}

#quoteModal .close-modal-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
}

#quoteModal .close-modal-btn:hover {
  background: #ffc451;
  color: #151515;
  transform: rotate(90deg);
}

/* --- Multi-Step Progress Tracker --- */
.quote-progress-bar-wrap {
  background: #f8f9fc;
  padding: 16px 28px;
  border-bottom: 1px solid #edf0f5;
  position: relative;
  z-index: 2;
}

.quote-steps-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-steps-nav::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e3e7ee;
  z-index: 1;
}

.quote-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.quote-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.quote-step-title {
  font-size: 12px;
  font-weight: 600;
  color: #88909b;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-step-item.active .quote-step-circle {
  background: #ffc451;
  color: #151515;
  box-shadow: 0 0 0 4px rgba(255, 196, 81, 0.25);
}

.quote-step-item.active .quote-step-title {
  color: #151515;
  font-weight: 700;
}

.quote-step-item.completed .quote-step-circle {
  background: #28a745;
  color: #ffffff;
}

.quote-step-item.completed .quote-step-title {
  color: #28a745;
}

/* Modal Body */
#quoteModal .modal-body {
  padding: 26px 28px 10px;
  position: relative !important;
  z-index: 105003 !important;
  pointer-events: auto !important;
}

/* Step Container */
.quote-step-pane {
  display: none;
  animation: fadeInStep 0.3s ease forwards;
  position: relative;
  z-index: 105004;
  pointer-events: auto !important;
}

.quote-step-pane.active {
  display: block !important;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Form Elements (Step 1) --- */
.quote-form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 105005;
}

.quote-form-group label {
  font-weight: 600;
  font-size: 13px;
  color: #2c3038;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.quote-form-group label i {
  color: #ffc451;
  font-size: 16px;
}

.quote-required-star {
  color: #dc3545;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.quote-required-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.25);
  padding: 1px 7px;
  border-radius: 4px;
  display: inline-block;
}

.quote-input-wrap {
  position: relative;
  z-index: 105006;
}

.quote-input-wrap i.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa1ad;
  font-size: 18px;
  pointer-events: none !important; /* CRITICAL: Must not block input clicks */
  z-index: 105010 !important;
}

.quote-form-control,
#quoteModal input[type="text"],
#quoteModal input[type="tel"],
#quoteModal input[type="email"],
#quoteModal textarea {
  width: 100% !important;
  height: 48px;
  padding: 10px 14px 10px 44px !important;
  background-color: #ffffff !important;
  border: 1.5px solid #dce1e8 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #222222 !important;
  transition: all 0.25s ease;
  position: relative !important;
  z-index: 105007 !important;
  pointer-events: auto !important;
  cursor: text !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.quote-form-control:focus,
#quoteModal input:focus,
#quoteModal textarea:focus {
  background-color: #ffffff !important;
  border-color: #ffc451 !important;
  box-shadow: 0 0 0 3px rgba(255, 196, 81, 0.25) !important;
  outline: 0 !important;
}

.quote-form-control.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff9f9 !important;
}

.quote-form-control.is-valid {
  border-color: #28a745 !important;
}

.quote-invalid-msg {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.quote-invalid-msg.visible {
  display: block !important;
}

/* --- Service Selection Cards (Step 2) --- */
.services-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
  position: relative;
  z-index: 105005;
}

.services-badge-counter {
  font-size: 12px;
  font-weight: 600;
  background: #f1f3f6;
  color: #495057;
  padding: 4px 12px;
  border-radius: 20px;
}

.services-badge-counter span {
  color: #e09f1f;
  font-weight: 700;
}

.services-quick-actions {
  display: flex;
  gap: 8px;
}

.services-quick-actions button {
  background: transparent;
  border: none;
  color: #007bff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
  pointer-events: auto !important;
}

.services-quick-actions button:hover {
  background: #eef5ff;
  text-decoration: underline;
}

.quote-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 2px 10px 2px;
  position: relative;
  z-index: 105005;
}

@media (max-width: 600px) {
  .quote-services-grid {
    grid-template-columns: 1fr;
    max-height: 320px;
  }
}

/* Custom Scrollbar */
.quote-services-grid::-webkit-scrollbar {
  width: 6px;
}
.quote-services-grid::-webkit-scrollbar-track {
  background: #f1f3f6;
  border-radius: 10px;
}
.quote-services-grid::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 10px;
}
.quote-services-grid::-webkit-scrollbar-thumb:hover {
  background: #ffc451;
}

/* Service Card Item */
.service-check-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e6ed;
  border-radius: 10px;
  cursor: pointer !important;
  transition: all 0.2s ease;
  user-select: none;
  pointer-events: auto !important;
  z-index: 105006;
}

.service-check-card:hover {
  border-color: #ffc451;
  background: #fffdf7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.service-check-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.custom-checkbox-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #ced4da;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  pointer-events: none;
}

.custom-checkbox-indicator i {
  color: #ffffff;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.service-card-info {
  flex: 1;
  pointer-events: none;
}

.service-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #2b303a;
  line-height: 1.3;
  margin: 0;
}

.service-card-badge {
  font-size: 10.5px;
  color: #7b8390;
  margin-top: 2px;
  display: block;
}

/* Checked State */
.service-check-card.checked {
  border-color: #e09f1f;
  background: #fffdf5;
  box-shadow: 0 4px 12px rgba(255, 196, 81, 0.22);
}

.service-check-card.checked .custom-checkbox-indicator {
  background: #ffc451;
  border-color: #e09f1f;
}

.service-check-card.checked .custom-checkbox-indicator i {
  opacity: 1;
  color: #151515;
  transform: scale(1);
}

.service-check-card.checked .service-card-title {
  color: #151515;
}

/* Notes Textarea */
.quote-notes-wrap {
  margin-top: 16px;
  position: relative;
  z-index: 105005;
}

.quote-notes-wrap textarea {
  width: 100% !important;
  min-height: 70px !important;
  height: auto !important;
  padding: 10px 14px !important;
  background-color: #ffffff !important;
  border: 1.5px solid #dce1e8 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  resize: vertical;
  position: relative !important;
  z-index: 105006 !important;
  pointer-events: auto !important;
  cursor: text !important;
}

.quote-notes-wrap textarea:focus {
  border-color: #ffc451 !important;
  box-shadow: 0 0 0 3px rgba(255, 196, 81, 0.2) !important;
  outline: none !important;
}

/* --- Step 3 (Success Animation Screen) --- */
.quote-success-box {
  text-align: center;
  padding: 30px 10px 20px;
}

.quote-success-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
  font-size: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.35);
  animation: bounceSuccess 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceSuccess {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.quote-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 8px;
}

.quote-success-desc {
  font-size: 14px;
  color: #555e6d;
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.quote-summary-card {
  background: #f8f9fc;
  border-radius: 10px;
  border: 1px solid #edf0f5;
  padding: 16px 20px;
  max-width: 480px;
  margin: 0 auto 25px;
  text-align: left;
  font-size: 13px;
}

.quote-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e6ed;
}

.quote-summary-row:last-child {
  border-bottom: none;
}

.quote-summary-label {
  color: #7b8390;
  font-weight: 600;
}

.quote-summary-val {
  color: #151515;
  font-weight: 600;
}

/* --- Modal Footer & Action Buttons --- */
#quoteModal .modal-footer {
  background: #fafbfe;
  padding: 16px 28px 22px;
  border-top: 1px solid #edf0f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 105003;
}

.btn-quote-back {
  background: #ffffff;
  color: #495057;
  border: 1.5px solid #dce1e8;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto !important;
}

.btn-quote-back:hover {
  background: #f1f3f6;
  color: #151515;
}

.btn-quote-next,
.btn-quote-submit {
  background: linear-gradient(135deg, #ffc451 0%, #e09f1f 100%);
  color: #151515;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 196, 81, 0.35);
  pointer-events: auto !important;
}

.btn-quote-next:hover,
.btn-quote-submit:hover {
  background: linear-gradient(135deg, #ffd06f 0%, #eaab32 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 196, 81, 0.45);
}

.btn-quote-submit:disabled,
.btn-quote-next:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner on button */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(21, 21, 21, 0.25);
  border-top-color: #151515;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
