/* Quote Form Modal Styles */

:root {
  --primary: #233cfb;
  --primary-dark: #1a2ec9;
  --navy: #050a30;
  --blue-light: #f3f5fb;
  --azure-light: #C5e1f8;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-700: #616161;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Modal Overlay */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quote-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal */
.quote-modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.quote-modal-overlay.active .quote-modal {
  transform: scale(1);
}

/* Close Button */
.quote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.quote-modal-close:hover {
  background: var(--gray-100);
  color: var(--primary);
}

/* Modal Header */
.quote-modal-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--navy) 0%, #0a1555 100%);
  color: var(--white);
}

.quote-modal-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--primary);
  transform: scale(1.1);
}

.progress-step.completed .step-number {
  background: #28a745;
}

.progress-step span {
  font-size: 0.75rem;
  text-align: center;
  font-weight: 500;
}

/* Modal Body */
.quote-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.quote-modal-body::-webkit-scrollbar {
  width: 8px;
}

.quote-modal-body::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.quote-modal-body::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 4px;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.required {
  color: var(--primary);
}

/* Radio Group */
.radio-group {
  display: grid;
  gap: 1rem;
}

.radio-option {
  display: block;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--white);
}

.radio-content i {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 30px;
}

.radio-content span {
  font-size: 1rem;
  color: #343434;
}

.radio-option input[type="radio"]:checked + .radio-content {
  border-color: var(--primary);
  background: var(--azure-light);
}

.radio-content:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(35, 60, 251, 0.2);
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  gap: 1rem;
}

.checkbox-option {
  display: block;
  cursor: pointer;
}

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

.checkbox-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--white);
  position: relative;
}

.checkbox-content::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-content::before {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-content::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Pro';
  font-weight: 900;
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 0.75rem;
}

.checkbox-content i {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 30px;
  margin-left: 2rem;
}

.checkbox-content > div {
  flex: 1;
}

.checkbox-content h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.checkbox-content p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-content {
  border-color: var(--primary);
  background: var(--azure-light);
}

.checkbox-content:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(35, 60, 251, 0.2);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Cabin', sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(35, 60, 251, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Modal Footer */
.quote-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--gray-100);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-family: 'Cabin', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 60, 251, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .quote-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .quote-modal-header,
  .quote-modal-body,
  .quote-modal-footer {
    padding: 1.5rem 1rem;
  }
  
  .quote-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .progress-step span {
    font-size: 0.65rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .quote-modal-footer {
    flex-direction: column-reverse;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-message.active {
  display: block;
}

.success-message i {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.success-message h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--gray-700);
  font-size: 1.1rem;
}

/* Calendar Styles */
.calendar-container {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-header h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}

.calendar-nav {
  background: transparent;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--navy);
}

.calendar-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  padding: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--navy);
  border: 2px solid transparent;
}

.calendar-day:not(.empty):not(.disabled):hover {
  background: var(--azure-light);
  border-color: var(--primary);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.disabled {
  color: var(--gray-200);
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

.selected-date-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  border-radius: 6px;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.selected-date-display.active {
  background: var(--azure-light);
  border: 2px solid var(--primary);
}

.selected-date-display i {
  font-size: 1.5rem;
  color: var(--primary);
}

.selected-date-display span {
  font-size: 1rem;
}

.selected-date-display strong {
  color: var(--navy);
}

/* Time Selection */
.time-selection {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
}

.time-slot:hover {
  background: var(--azure-light);
  border-color: var(--primary);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.25rem;
  }
  
  .calendar-day {
    font-size: 0.9rem;
  }
  
  .calendar-day-header {
    font-size: 0.75rem;
  }
  
  .calendar-container {
    padding: 1rem;
  }
  
  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  
  .time-slot {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Calendar Styles */
.calendar-container {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-header h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}

.calendar-nav {
  background: transparent;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--navy);
}

.calendar-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  padding: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--navy);
  border: 2px solid transparent;
}

.calendar-day:not(.empty):not(.disabled):hover {
  background: var(--azure-light);
  border-color: var(--primary);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.disabled {
  color: var(--gray-200);
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

.selected-date-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  border-radius: 6px;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.selected-date-display.active {
  background: var(--azure-light);
  border: 2px solid var(--primary);
}

.selected-date-display i {
  font-size: 1.5rem;
  color: var(--primary);
}

.selected-date-display span {
  font-size: 1rem;
}

.selected-date-display strong {
  color: var(--navy);
}

@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.25rem;
  }
  
  .calendar-day {
    font-size: 0.9rem;
  }
  
  .calendar-day-header {
    font-size: 0.75rem;
  }
  
  .calendar-container {
    padding: 1rem;
  }
}
