/* Quote Calculator Modal Styles */

.quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(17, 17, 17, 0.9));
  backdrop-filter: blur(8px);
}

.quote-modal__content {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enhanced Header */
.quote-modal__header {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
  border-radius: 20px 20px 0 0;
  padding: 28px 32px;
}

.quote-modal__header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.quote-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.quote-modal__title-section h2 {
  margin: 0 0 4px 0;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  background: linear-gradient(135deg, #111827, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-modal__subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.quote-modal__close {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.quote-modal__close:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Progress Section */
.quote-modal__progress {
  padding: 24px 32px;
  background: white;
  border-bottom: 1px solid #f3f4f6;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 50%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #dc2626;
  color: white;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
}

.step.active .step-label {
  color: #111827;
  font-weight: 600;
}

.quote-modal__body {
  padding: 32px;
  flex: 1;
  overflow-y: auto;
}

.quote-form__fields {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

/* Checkbox styles */
.form-group--checkbox {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: white;
}

.checkbox-label:hover {
  border-color: #dc2626;
  background: #fef2f2;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: #dc2626;
  border-color: #dc2626;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-text .price {
  color: #dc2626;
  font-weight: 600;
  font-size: 14px;
}

/* Included features section */
.included-features {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.included-features h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #0c4a6e;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
}

.feature-check {
  color: #059669;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text {
  color: #0c4a6e;
  font-size: 14px;
  line-height: 1.4;
}

.package-summary {
  background: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #0ea5e9;
}

.package-summary strong {
  color: #0c4a6e;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.package-summary p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* Enhanced Client Info Section */
.quote-form__client-info {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid rgba(220, 38, 38, 0.1);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.quote-form__client-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.client-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.client-info-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.required-fields-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  font-size: 14px;
  color: #92400e;
  transition: all 0.3s ease;
}

.required-fields-indicator.hidden {
  opacity: 0;
  transform: scale(0.95);
}

.indicator-icon {
  font-size: 16px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 250px;
}

.form-row .form-group:only-child {
  flex: 1;
  min-width: 100%;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

.field-status {
  font-size: 16px;
  margin-left: 8px;
}

.status-valid {
  color: #10b981;
  font-weight: bold;
}

.status-invalid {
  color: #ef4444;
  font-weight: bold;
}

.form-group input.valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Quote preview */
.quote-preview {
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
  margin-top: 24px;
}

.quote-preview h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #111827;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quote-table th,
.quote-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.quote-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.quote-table td {
  color: #6b7280;
}

.quote-total {
  background: #fef2f2;
  font-weight: 600;
}

.quote-total td {
  color: #dc2626;
  font-size: 16px;
}

/* Enhanced Quote Success */
.quote-success {
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: 16px;
  border: 2px solid rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.quote-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669);
}

.quote-success__icon {
  margin-bottom: 24px;
  animation: successBounce 0.6s ease-out;
}

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

.quote-success h3 {
  margin: 0 0 24px 0;
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.quote-details {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quote-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.quote-detail-item:last-child {
  border-bottom: none;
}

.quote-detail-item.total {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  border-top: 2px solid #f3f4f6;
  margin-top: 8px;
  padding-top: 16px;
}

.quote-detail-item .label {
  color: #6b7280;
  font-weight: 500;
}

.quote-detail-item .value {
  color: #111827;
  font-weight: 600;
}

.quote-success__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.quote-success__note {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #6b7280;
}

.note-item:last-child {
  margin-bottom: 0;
}

/* Modal footer */
.quote-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 32px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

/* Enhanced Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn--primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn--primary.btn--ready {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn--primary.btn--ready:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn--large {
  padding: 16px 32px;
  font-size: 18px;
  min-height: 56px;
}

.btn--secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Quote Buttons Container */
.quote-buttons {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* Generate Quote Button on Service Pages */
.generate-quote-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
}

.generate-quote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.generate-quote-btn:active {
  transform: translateY(0);
}

.generate-quote-btn::before {
  content: '💰';
  font-size: 20px;
}

/* Client details warning */
.client-details-warning {
  margin: 10px 0;
}

.client-details-warning div {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px;
  color: #92400e;
}

.client-details-warning strong {
  display: block;
  margin-bottom: 5px;
}

.client-details-warning p {
  margin: 5px 0 0 0;
  font-size: 14px;
}

/* Required field styling */
.quote-form__client-info h3 {
  color: #1f2937;
  margin-bottom: 20px;
}

.quote-form__client-info .form-group label {
  font-weight: 600;
  color: #374151;
}

.quote-form__client-info .form-group input:required {
  border-left: 3px solid #dc2626;
}

.quote-form__client-info .form-group input:required:valid {
  border-left: 3px solid #10b981;
}

.quote-form__client-info .form-group input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Quote Error Styles */
.quote-error {
  text-align: center;
  padding: 30px;
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  margin: 20px 0;
}

.quote-error__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.quote-error h3 {
  color: #dc2626;
  margin-bottom: 16px;
  font-size: 24px;
}

.quote-error p {
  color: #991b1b;
  margin-bottom: 8px;
  font-size: 16px;
}

.quote-error__actions {
  margin-top: 20px;
}

.quote-error__actions .btn {
  margin: 0 5px;
}

/* Enhanced Responsive Design */

/* Tablet responsive improvements */
@media (max-width: 1024px) and (min-width: 769px) {
  .quote-modal__content {
    max-width: 700px;
  }
  
  .quote-modal__header h2 {
    font-size: 22px;
  }
  
  .quote-modal__header,
  .quote-modal__body,
  .quote-modal__footer {
    padding: 24px 28px;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 15px;
    padding: 11px 14px;
  }
}

/* Mobile responsive - 768px and below */
@media (max-width: 768px) {
  .quote-modal {
    padding: 8px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .quote-modal__content {
    max-height: 92vh;
    border-radius: 16px;
    width: 100%;
    margin: 0;
  }
  
  .quote-modal__header {
    padding: 18px 20px;
    border-radius: 16px 16px 0 0;
  }
  
  .quote-modal__header h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .quote-modal__close {
    font-size: 24px;
    padding: 6px;
  }
  
  .quote-modal__body {
    padding: 20px;
  }
  
  .quote-modal__footer {
    padding: 18px 20px;
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 20px;
    min-height: 48px;
  }
  
  /* Form improvements */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 10px;
  }
  
  /* Checkbox improvements */
  .checkbox-label {
    padding: 14px;
    border-radius: 10px;
  }
  
  .checkbox-custom {
    width: 22px;
    height: 22px;
    margin-right: 14px;
  }
  
  .checkbox-text .price {
    font-size: 15px;
  }
  
  /* Quote table mobile */
  .quote-table {
    font-size: 14px;
    border-radius: 10px;
  }
  
  .quote-table th,
  .quote-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
  
  .quote-table th {
    font-size: 12px;
  }
  
  /* Features grid mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .feature-item {
    padding: 8px 0;
  }
  
  .feature-text {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .included-features {
    padding: 20px;
    border-radius: 12px;
  }
  
  .included-features h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  /* Client info section mobile */
  .quote-form__client-info {
    padding: 20px;
    border-radius: 10px;
  }
  
  .quote-form__client-info h3 {
    font-size: 17px;
    margin-bottom: 16px;
  }
  
  /* Quote preview mobile */
  .quote-preview {
    padding: 20px;
    border-radius: 10px;
  }
  
  .quote-preview h3 {
    font-size: 17px;
  }
  
  /* Success screen mobile */
  .quote-success {
    padding: 24px 20px;
  }
  
  .quote-success__icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .quote-success h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .quote-success p {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* Small mobile responsive - 480px and below */
@media (max-width: 480px) {
  .quote-modal {
    padding: 4px;
    padding-top: 10px;
  }
  
  .quote-modal__content {
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .quote-modal__header {
    padding: 16px 18px;
  }
  
  .quote-modal__header h2 {
    font-size: 18px;
  }
  
  .quote-modal__close {
    font-size: 22px;
    padding: 4px;
  }
  
  .quote-modal__body {
    padding: 18px;
  }
  
  .quote-modal__footer {
    padding: 16px 18px;
  }
  
  .btn {
    font-size: 14px;
    padding: 12px 18px;
    min-height: 44px;
  }
  
  /* Form compact */
  .form-group {
    margin-bottom: 18px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
  }
  
  .checkbox-label {
    padding: 12px;
  }
  
  .checkbox-text {
    font-size: 14px;
  }
  
  .checkbox-text .price {
    font-size: 14px;
  }
  
  /* Table extra compact */
  .quote-table th,
  .quote-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .quote-table th {
    font-size: 11px;
  }
  
  /* Features compact */
  .included-features {
    padding: 16px;
  }
  
  .included-features h3 {
    font-size: 16px;
  }
  
  .feature-text {
    font-size: 13px;
  }
  
  .quote-form__client-info,
  .quote-preview {
    padding: 16px;
  }
  
  .quote-form__client-info h3,
  .quote-preview h3 {
    font-size: 16px;
  }
  
  /* Success screen compact */
  .quote-success {
    padding: 20px 16px;
  }
  
  .quote-success__icon {
    font-size: 36px;
  }
  
  .quote-success h3 {
    font-size: 18px;
  }
  
  .quote-success p {
    font-size: 14px;
  }
}