.repair-estimator-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
}

.repair-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.repair-card-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.repair-card-header h2 {
  margin: 0 0 0.5rem;
  font-family: 'Volkhov', serif;
  font-size: 1.75rem;
}

.repair-card-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.repair-card-content {
  padding: 1.5rem;
}

.step-description {
  color: #333;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

.step-disclaimer {
  color: #666;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

/* Button Grid Layout */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  text-align: center;
  width: 100%;
  border: 2px solid transparent;
  font-family: inherit;
}

.button-outline {
  background: #fff;
  border: 2px solid #e6e6e6;
  color: #333;
}

.button-outline:hover {
  border-color: #029f9f;
  color: #029f9f;
}

.button-outline.selected {
  background: #029f9f;
  border-color: #029f9f;
  color: #fff;
}

.button-primary {
  background: #029f9f;
  color: #fff;
  border: none;
}

.button-primary:hover {
  background: #068888;
}

.button-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e6e6e6;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #029f9f;
}

/* Textarea Styles for Other Issue */
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e6e6e6;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.form-group textarea:focus {
  outline: none;
  border-color: #029f9f;
}

.estimate-box p.issue-description {
  font-style: italic;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-left: 3px solid #029f9f;
  border-radius: 0 4px 4px 0;
  color: #555;
}

.loading-indicator {
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  color: #029f9f;
  font-weight: 500;
}

.loading-indicator:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid #029f9f;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: spinner 0.8s linear infinite;
}

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

/* Estimate Box Styles */
.estimate-box {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.estimate-box h3 {
  font-size: 1.25rem;
}

.estimate-box p {
  margin: 0.5rem 0;
  padding: 0;
}

.estimate-box .price {
  font-size: 1.5rem;
  font-weight: 600;
}

.estimate-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
  padding-bottom: 0;
}

.estimate-box .evaluation-needed {
  color: #666;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.75rem;
  background: #e6f2f2;
  border-radius: 4px;
}

/* Date Selection Styles */
.date-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: left;
}

.date-button .time-text {
  color: #666;
  font-size: 0.875rem;
}

/* Service Note Styles */
.service-note {
  background: #e6f2f2;
  border-radius: 6px;
  padding: 1rem;
  /* margin-top: 1.25rem; */
}

.service-note p {
  margin: 0;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.5;
}

.service-note strong {
  color: #029f9f;
}

/* Success Message Styles */
.success-alert {
  background: #d2f1d9;
  color: #0a5d1c;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 1.1rem;
}

.success-icon {
  width: 24px;
  height: 24px;
  background: #0a5d1c;
  border-radius: 50%;
  margin-right: 0.75rem;
  position: relative;
}

.success-icon:before {
  content: '✓';
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Repair Details Styles */
.repair-details {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1.5rem;
}

.repair-details h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #333;
  font-family: 'Volkhov', serif;
}

.details-grid {
  display: grid;
  gap: 0.5rem;
}

.details-grid p {
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 0.938rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 0.5rem;
}

.details-grid p span:first-child {
  color: #666;
  font-weight: 500;
}

/* Confirmation Note Styles */
.confirmation-note {
  background: #e6f2f2;
  color: #0c6868;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.confirmation-note p {
  margin: 0 0 0.5rem;
  line-height: 1.5;
  font-size: 0.938rem;
}

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

.confirmation-note a {
  color: #0c6868;
  text-decoration: underline;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Back Button Styles */
.back-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.back-button:hover {
  color: #333;
}

.back-button:before {
  content: '←';
  margin-right: 0.5rem;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  -webkit-animation: loading-spinner 0.8s linear infinite;
  animation: loading-spinner 0.8s linear infinite;
}

@-webkit-keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* New styles for selection summary */
.selection-summary {
  margin-bottom: 1.5rem;
}

.selection-summary .service-note {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.selection-summary .service-note strong {
  color: #029f9f;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .repair-card-header {
    padding: 1.25rem;
  }

  .repair-card-header h2 {
    font-size: 1.5rem;
  }

  .repair-card-content {
    padding: 1.25rem;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .date-button {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-button .time-text {
    margin-top: 0.25rem;
  }

  .details-grid p {
    grid-template-columns: 100px 1fr;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }
}

/* Error State Styles */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
}

/* Accessibility Improvements */
.button:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #029f9f;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: white;
  color: black;
  text-decoration: none;
}

.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}

/* Debug Table Styles */
.repair-debug-table {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 3px 0px rgba(0, 41, 41, 0.15);
  margin-top: 20px;
  padding: 1.5rem;
  overflow: hidden;
}

.repair-debug-table h3 {
  color: #029f9f;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
  font-family: 'Volkhov', serif;
}

.debug-table-content {
  margin-top: 1rem;
  overflow-x: auto;
}

.debug-repair-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.debug-repair-table th,
.debug-repair-table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #e6e6e6;
}

.debug-repair-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.debug-repair-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.debug-repair-table tr:hover {
  background-color: #e6f2f2;
}

/* Make the device column sticky for better usability in wide tables */
.debug-repair-table th:first-child,
.debug-repair-table td:first-child {
  position: sticky;
  left: 0;
  background-color: inherit;
  z-index: 1;
}

.debug-repair-table th:first-child {
  background-color: #f5f5f5;
  z-index: 2;
}

/* Responsive adjustments for debug table */
@media (max-width: 768px) {
  .repair-debug-table {
    padding: 1rem;
    overflow-x: auto;
  }

  .debug-repair-table {
    font-size: 12px;
  }

  .debug-repair-table th,
  .debug-repair-table td {
    padding: 6px 8px;
  }
}
