/* Reservation Page Styles */

/* Basic Reset and Common Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Avenir", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.reservation-header-nav {
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.reservation-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reservation-nav-container .logo {
  flex-shrink: 0;
}

.reservation-nav-container .logo-img {
  height: 50px;
  width: auto;
}

.header-phone {
  display: flex;
  align-items: center;
}

.header-phone .phone-icon {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.header-phone .phone-icon:hover {
  color: #e60f04;
  background: rgba(230, 15, 4, 0.1);
  transform: scale(1.1);
}

.header-phone .phone-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Main Content */
.reservation-section {
  padding: 30px 0;
  background: #faf9f8;
  min-height: 100vh;
}

/* Progress Stepper Styles */
.stepper-container {
  background: #faf9f8;
  padding: 30px 0;
}

.stepper {
  max-width: 900px;
  margin: 0 auto;
}

.progress-line {
  width: 100%;
  height: 10px;
  background: #c8c6c3;
  border-radius: 4px;
  position: relative;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: #71c146;
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
}

.step-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

.step-label {
  font-size: 18px;
  font-weight: 600;
  color: #b4aca4;
  text-align: center;
  transition: all 0.3s ease;
  flex: 1;
  margin: 0;
  padding: 0;
}

.step-label.completed {
  color: #71c146;
}

.step-label.active {
  color: #71c146;
}

.reservation-header {
  text-align: center;
  margin-bottom: 40px;
}

.reservation-header h1 {
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: #333333;
  margin-bottom: 8px;
  font-weight: 700;
}

.title-decoration {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.decoration-rect {
  height: 6px;
  width: 40px;
}

.decoration-rect.yellow {
  background-color: #ffc107;
}

.decoration-rect.red {
  background-color: #e60f04;
}

.reservation-form-container {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.reservation-form {
  padding: 40px;
}

/* Form Sections */
.form-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
}

.section-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
}

/* Diagnostic Section */
.diagnostic-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
  max-width: 700px;
  margin: 0 auto;
}

/* Car Visualization */
.car-visualization {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.car-container {
  background: transparent;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.car-container svg {
  width: 100%;
  height: 100%;
  max-width: 150px;
}

.car-diagram {
  width: 100%;
  height: 100%;
  max-width: none;
}

.window-area {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.window-area:hover {
  fill: #ffe066 !important;
  stroke: #ffd700 !important;
  stroke-width: 2 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.window-area.active {
  fill: #ffe066 !important;
  stroke: #ffd700 !important;
  stroke-width: 2 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.window-area.selected {
  fill: #ffe066 !important;
  stroke: #ffd700 !important;
  stroke-width: 3 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
}

.window-label {
  font-family: "Avenir", "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: bold;
  fill: #333;
  pointer-events: none;
}

/* Glass Selection Buttons */
.glass-selection {
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

.glass-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glass-btn {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  font-size: 14px;
}

.glass-btn:hover {
  border-color: #ffd700;
  background: #fffbf0;
}

.glass-btn.active {
  border-color: #ffd700;
  background: #ffe066;
}

/* Button numbers removed */

.btn-content {
  display: flex;
  flex-direction: column;
}

.btn-content strong {
  font-size: 14px;
  color: #333333;
  margin-bottom: 2px;
}

.btn-content span {
  font-size: 12px;
  color: #666;
}

/* Problem Type Section */
.problem-type-container {
  display: flex;
  justify-content: center;
}

.problem-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 900px;
}

.problem-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  padding: 0;
  width: 170px;
}

.problem-btn:hover {
  transform: translateY(-2px);
}

.problem-btn.active {
  transform: translateY(-2px);
}

.problem-icon {
  position: relative;
  cursor: pointer;
  border-radius: 0.375rem;
  border: solid 1px #d3d6da;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 10.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  transition: all 0.3s ease;
}

.problem-icon svg {
  width: 5rem;
  height: 4.9375rem;
  transition: all 0.3s ease;
}

/* Smaller SVG for 1 Impact button */
.problem-btn[data-problem="impact"] .problem-icon svg {
  width: 2rem;
  height: 2rem;
}

/* Position Selection Section */
.position-container {
  display: flex;
  justify-content: center;
}

.position-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 450px;
}

/* Lunette arrière section with 3 columns */
#lunetteArriereSection .position-buttons {
  grid-template-columns: repeat(3, 1fr);
  max-width: 650px;
  gap: 30px;
}

/* Position section SVGs - larger size */
.position-buttons .problem-icon svg {
  width: 8rem;
  height: 5.5rem;
}

/* Position button styling - independent from problem-btn */
.position-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  padding: 0;
  width: 170px;
}

.position-btn:hover {
  transform: translateY(-2px);
}

.position-btn.active {
  transform: translateY(-2px);
}

.position-btn .problem-icon {
  position: relative;
  cursor: pointer;
  border-radius: 0.375rem;
  border: solid 1px #d3d6da;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  padding: 1.25rem;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  transition: all 0.3s ease;
}

.position-btn .problem-icon svg {
  width: 8rem;
  height: 5.5rem;
  transition: all 0.3s ease;
}

.position-btn:hover .problem-icon {
  border-color: #ffd700;
  background: #fffbf0;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.position-btn.active .problem-icon {
  border-color: #ffd700;
  background: #ffe066;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

/* Position SVG color swap on active/select only */
.position-btn.active svg path[fill="#FFDC04"] {
  fill: #e4dfda;
}

.position-btn.active svg path[fill="#E4DFDA"] {
  fill: #ffe066;
}

/* Lunette arrière SVG color swap on active/select */
#lunetteArriereSection .position-btn.active svg path[fill="#FFDC04"] {
  fill: #e4dfda;
}

#lunetteArriereSection .position-btn.active svg path[fill="#FFDC0A"] {
  fill: #e4dfda;
}

#lunetteArriereSection .position-btn.active svg path[fill="#FD0"] {
  fill: #e4dfda;
}

#lunetteArriereSection .position-btn.active svg path[fill="#E4DFDA"] {
  fill: #ffe066;
}

#lunetteArriereSection .position-btn.active svg path[fill="#D9D9D9"] {
  fill: #ffe066;
}

.position-btn .problem-label strong {
  font-size: 13px;
  color: #333333;
  font-weight: 600;
  line-height: 1.2;
}

/* Vitre Type Selection Section */
.vitre-type-container {
  display: flex;
  justify-content: center;
}

.vitre-type-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 600px;
}

.vitre-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  padding: 0;
  width: 170px;
}

.vitre-type-btn:hover {
  transform: translateY(-2px);
}

.vitre-type-btn.active {
  transform: translateY(-2px);
}

.vitre-type-btn .problem-icon {
  position: relative;
  cursor: pointer;
  border-radius: 0.375rem;
  border: solid 1px #d3d6da;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  padding: 1.25rem;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  transition: all 0.3s ease;
}

.vitre-type-btn .problem-icon svg {
  width: 5rem;
  height: 4.9375rem;
  transition: all 0.3s ease;
}

.vitre-type-btn:hover .problem-icon {
  border-color: #ffd700;
  background: #fffbf0;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.vitre-type-btn.active .problem-icon {
  border-color: #ffd700;
  background: #ffe066;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.vitre-type-btn .problem-label {
  text-align: center;
}

.vitre-type-btn .problem-label strong {
  font-size: 13px;
  color: #333333;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.vitre-type-btn .problem-label span {
  font-size: 11px;
  color: #666666;
  font-weight: 400;
  line-height: 1.2;
  display: block;
  margin-top: 2px;
}

/* Vitre type SVG color swap on active/select only */
.vitre-type-btn.active svg path[fill="#FFDD06"] {
  fill: #e4dfda;
}

.vitre-type-btn.active svg path[fill="#FFDC04"] {
  fill: #e4dfda;
}

.vitre-type-btn.active svg path[fill="#FFDC0C"] {
  fill: #e4dfda;
}

.vitre-type-btn.active svg path[fill="#E4DFDA"] {
  fill: #ffe066;
}

/* Impact Size Section - Third Component */
.impact-size-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 450px;
}

.problem-btn:hover .problem-icon {
  border-color: #ffd700;
  background: #fffbf0;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.problem-btn:hover .problem-icon svg path,
.problem-btn:hover .problem-icon svg circle {
  stroke: #000000;
  fill: #000000;
}

.problem-btn.active .problem-icon {
  border-color: #ffd700;
  background: #ffe066;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.problem-btn.active .problem-icon svg path,
.problem-btn.active .problem-icon svg circle {
  stroke: #000000;
  fill: #000000;
}

.problem-label strong {
  font-size: 13px;
  color: #333333;
  font-weight: 600;
  line-height: 1.2;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  color: #333333;
  font-size: 1.4rem;
  margin-bottom: 60px;
  font-weight: 700;
  font-family: "Inter", "Avenir", "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
}

.form-section h3:before {
  content: "";
  width: 4px;
  height: 20px;
  background: #e60f04;
  margin-right: 12px;
}

/* Phone section h3 spacing */
.phone-input-container ~ * .form-section h3,
.floating-label-group ~ * .form-section h3,
form:has(.phone-input-container) .form-section h3 {
  margin-bottom: 10px;
}

/* Phone description styling */
.phone-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
  font-weight: 400;
}

/* Phone required text styling */
.phone-required-text {
  font-size: 12px;
  color: #e60f04;
  margin-top: 6px;
  text-align: left;
  font-weight: 400;
}



/* Phone input container */
.phone-input-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

/* Floating label group */
.floating-label-group {
  position: relative;
  width: 280px;
}

.floating-label-group input {
  width: 100%;
  padding: 16px 16px 16px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  background: white;
  transition: border-color 0.3s ease;
  outline: none;
}

.floating-label-group input:focus {
  border-color: #ccc !important;
  outline: none;
}

.floating-label-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999;
  font-weight: 400;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 8px;
  margin-left: -4px;
}

/* When input is focused or has content */
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
  top: -1px;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-bottom: 15px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
}

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

/* Radio buttons for service type */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.radio-option:hover {
  border-color: #e60f04;
  background: #fff5f5;
}

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

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: #e60f04;
  background: #e60f04;
}

.radio-option input[type="radio"]:checked + .radio-custom:after {
  opacity: 1;
}

.radio-option input[type="radio"]:checked ~ .radio-content {
  color: #e60f04;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 16px;
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.radio-custom:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.radio-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.radio-content p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.time-slot-day h4 {
  color: #333;
  margin-bottom: 16px;
  font-size: 18px;
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.time-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.time-option:hover {
  border-color: #e60f04;
  background: #fff5f5;
}

.time-option input[type="radio"] {
  margin-right: 12px;
  accent-color: #e60f04;
}

.time-option input[type="radio"]:checked {
  background: #e60f04;
}

.time-option span {
  font-weight: 500;
  color: #333;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #71c146;
  color: white;
}

.btn-primary:hover {
  background: #5fa037;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(113, 193, 70, 0.3);
}

/* Continue button with index page styling */
#continueBtn.btn-primary {
  background: #71c146;
  color: white;
  border-radius: 30px;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 200px;
  display: none; /* Hidden by default */
}

#continueBtn.btn-primary:hover {
  background: #5fa037;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(113, 193, 70, 0.3);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  min-width: 280px;
}

/* Form actions */
.form-actions {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

/* Main content layout with flex */
.reservation-main-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.form-column {
  flex: 1;
  min-width: 0;
  transition: all 0.4s ease;
}

.summary-column {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  transition: width 0.4s ease;
}

/* Two-column layout when summary is active */
.reservation-main-content.has-summary .summary-column {
  width: 300px;
}

/* Intervention Summary Sticky Component - Receipt Style */
.intervention-summary {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-top: 3px solid #ffe066;
  font-family: "Inter", sans-serif;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

/* Animation when summary appears */
.intervention-summary.show {
  opacity: 1;
  transform: translateX(0);
}

.summary-header {
  background: white;
  color: #333;
  padding: 16px 16px 8px 16px;
  position: relative;
}

.summary-title-decoration {
  margin-bottom: 8px;
}

.summary-title-decoration .decoration-rect.yellow {
  width: 30px;
  height: 4px;
  background: #ffe066;
}

.summary-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.summary-content {
  padding: 0 16px 12px 16px;
}

.intervention-type {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #ddd;
}

.intervention-details {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.intervention-details .detail-item {
  margin-bottom: 6px;
  padding: 2px 0;
  border-bottom: 1px dotted #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intervention-details .detail-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  font-weight: 600;
  color: #333;
}

/* Summary footer with continue text */
.summary-footer {
  padding: 0;
  margin-top: 8px;
}

.continue-text {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: #71c146;
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.continue-text:hover {
  background: #5fa037;
}

/* ===================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   =================================== */

/* Tablet Styles - 768px to 1024px */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .stepper {
    max-width: 700px;
  }

  .step-labels {
    gap: 8px;
  }

  .step-label {
    font-size: 11px;
    padding: 4px 8px;
  }

  .reservation-main-content {
    flex-direction: column;
    gap: 20px;
  }

  .summary-column {
    position: static;
    order: -1;
  }

  .reservation-main-content.has-summary .summary-column {
    width: 100% !important;
  }

  .intervention-summary {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Diagnostic section tablet adjustments */
  .diagnostic-container {
    gap: 25px;
  }

  .glass-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
  }

  .problem-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .position-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .vitre-type-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 400px;
  }

  .vitre-type-btn {
    width: 140px;
  }

  .vitre-type-btn .problem-icon {
    width: 140px;
    height: 140px;
    padding: 1rem;
  }
}

/* Tablet responsive layout */
@media (max-width: 1024px) {
  .reservation-main-content {
    gap: 20px;
    align-items: center;
    justify-content: start;
  }
}

/* Desktop - Hide mobile intervention summary */
@media (min-width: 769px) {
  .mobile-intervention-summary {
    display: none !important;
  }
}

/* Mobile Styles - Under 768px */
@media (max-width: 768px) {
  /* Container and spacing adjustments */
  .container {
    padding: 0 12px;
  }

  /* Header mobile adjustments */
  .reservation-header-nav {
    padding: 15px 0;
  }

  .reservation-nav-container {
    padding: 0 12px;
  }

  .reservation-nav-container .logo-img {
    height: 40px;
  }

  .header-phone .phone-icon {
    width: 44px;
    height: 44px;
  }

  .header-phone .phone-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Main content mobile layout */
  .reservation-section {
    padding: 20px 0;
  }

  .reservation-header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  /* Progress stepper mobile */
  .stepper-container {
    padding: 20px 0;
  }

  .stepper {
    max-width: 100%;
  }

  .progress-line {
    height: 8px;
  }

  .step-labels {
    display: none;
  }

  .step-label {
    display: none;
  }

  /* Mobile step counter */
  .reservation-header-nav::after {
    content: "1 / 5\A Diagnostic";
    white-space: pre;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 500;
    color: #333;
    z-index: 10;
    text-align: center;
    line-height: 1.3;
  }

  .step-label.active {
    font-size: 10px;
  }

  /* Hide desktop summary on mobile */
  .summary-column {
    display: none !important;
  }

  /* Mobile-only intervention summary */
  .mobile-intervention-summary {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 0;
    margin: 0;
  }

  .mobile-intervention-summary.show {
    display: block !important;
  }

  .mobile-summary-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 20px 20px 20px;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-top: 3px solid #ffe066;
    font-family: "Inter", sans-serif;
    min-height: auto;
    overflow: hidden;
  }

  /* Edit button - phone icon style */
  .mobile-summary-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    border-radius: 50%;
  }

  .mobile-summary-close:hover {
    color: #e60f04;
    background: rgba(230, 15, 4, 0.1);
    transform: scale(1.1);
  }

  .mobile-summary-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .mobile-summary-header {
    background: white;
    color: #333;
    padding: 16px 40px 8px 16px;
    position: relative;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }

  /* Add title decoration like desktop */
  .mobile-summary-header::before {
    content: "";
    width: 30px;
    height: 4px;
    background: #ffe066;
    position: absolute;
    bottom: 8px;
    left: 16px;
  }

  .mobile-summary-body {
    padding: 0 16px 12px 16px;
  }

  .mobile-intervention-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 4px;
    line-height: 1.3;
  }

  .mobile-intervention-details {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .mobile-intervention-details > div {
    margin-bottom: 6px;
    padding: 2px 0;
    border-bottom: 1px dotted #eee;
    display: flex;
    justify-content: space-between;
  }

  .mobile-intervention-details > div:last-child {
    margin-bottom: 0;
    border-bottom: none;
    font-weight: 600;
    color: #333;
  }

  .mobile-continue-btn {
    background: #71c146;
    color: white;
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    margin-top: 10px;
  }

  .mobile-continue-btn:hover {
    background: #5fa037;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 193, 70, 0.3);
  }


  /* Form column full width */
  .form-column {
    width: 100%;
    max-width: 100%;
  }

  /* Form sections mobile */
  .form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
  }

  .form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }

  .form-section h3:before {
    width: 3px;
    height: 16px;
    margin-right: 10px;
  }

  /* Diagnostic section mobile layout */
  .diagnostic-container {
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .car-visualization {
    order: 1;
    padding: 15px;
    display: flex;
    justify-content: center;
  }

  .car-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .car-container svg {
    max-width: 130px;
    max-height: 260px;
    touch-action: manipulation;
  }

  /* Improve touch targets for car windows */
  .window-area {
    stroke-width: 2px;
    transition: all 0.2s ease;
  }

  .window-area:hover,
  .window-area:focus {
    stroke: #ffd700;
    stroke-width: 3px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
  }

  .window-area.selected {
    fill: #ffe066 !important;
    stroke: #ffd700;
    stroke-width: 3px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
  }

  .window-area.active {
    animation: pulse-glow 1.5s ease-in-out infinite;
  }

  @keyframes pulse-glow {
    0%,
    100% {
      filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
    }
    50% {
      filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1));
    }
  }

  .glass-selection {
    order: 2;
  }

  .glass-buttons {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }

  .glass-btn {
    padding: 16px 20px;
    font-size: 15px;
    min-height: 60px;
    text-align: left;
    border-radius: 8px;
  }

  /* Problem buttons mobile */
  .problem-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }

  .problem-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .problem-btn .problem-icon {
    min-width: 200px;
    width: 200px;
    height: 200px;
    padding: 0.75rem;
    margin-bottom: 10px;
    margin-right: 0;
    flex-shrink: 0;
    align-self: center;
  }

  .problem-btn .problem-icon svg {
    width: 5.5rem;
    height: 5.5rem;
  }

  .problem-btn .problem-label {
    text-align: center;
    flex: 1;
  }

  /* Position buttons mobile */
  .position-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }

  /* Override lunette arrière 3-column layout on mobile */
  #lunetteArriereSection .position-buttons {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 15px !important;
  }

  .position-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .position-btn .problem-icon {
    min-width: 200px;
    width: 200px;
    height: 200px;
    padding: 0.75rem;
    margin-bottom: 10px;
    margin-right: 0;
    flex-shrink: 0;
    align-self: center;
  }

  .position-btn .problem-label {
    text-align: center;
    flex: 1;
  }

  /* Vitre type buttons mobile */
  .vitre-type-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }

  .vitre-type-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .vitre-type-btn .problem-icon {
    width: 200px;
    height: 200px;
    padding: 0.75rem;
    margin-bottom: 10px;
    margin-right: 0;
    flex-shrink: 0;
    align-self: center;
  }

  .vitre-type-btn .problem-icon svg {
    width: 5.5rem;
    height: 5.5rem;
  }

  .problem-btn[data-problem="impact"] .problem-icon svg {
    width: 3rem;
    height: 3rem;
  }

  .vitre-type-btn .problem-label {
    text-align: center;
    flex: 1;
  }

  /* Impact size buttons mobile */
  .impact-size-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }


  /* Phone input container mobile */
  .phone-input-container {
    margin: 0;
  }

  .floating-label-group {
    width: min(280px, calc(100vw - 60px));
  }

  .floating-label-group input {
    padding: 16px 16px 16px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }

  .floating-label-group label {
    background: white;
  }

  /* Form inputs mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }

  /* Buttons mobile */
  .form-actions {
    text-align: center;
    padding: 20px 0;
  }

  .btn-primary,
  .btn-large {
    width: 100%;
    max-width: 300px;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* Contact section mobile improvements */
  .contact-options {
    flex-direction: column;
    gap: 15px;
  }

  .contact-option {
    padding: 15px;
  }

  .contact-phone {
    font-size: 1.2rem;
    text-align: center;
    padding: 20px 15px;
    margin-top: 30px;
  }

  .phone-number {
    font-size: 1.4rem;
    font-weight: 600;
  }

  /* Callback form mobile */
  #callbackForm {
    padding: 20px 15px;
    border-radius: 12px;
  }

  .callback-form-fields {
    gap: 20px;
  }

  .callback-form-fields .form-group {
    margin-bottom: 20px;
  }

  .callback-form-fields label {
    font-size: 15px;
    margin-bottom: 8px;
  }

  #callbackSubmitBtn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 8px;
    min-height: 56px;
  }

  /* Custom radio improvements for mobile */
  .custom-radio {
    padding: 16px 20px;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    touch-action: manipulation;
  }

  /* Touch-friendly improvements */
  .window-area {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    min-width: 44px;
    min-height: 44px;
  }

  .glass-btn,
  .problem-btn,
  .position-btn,
  .vitre-type-btn {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    touch-action: manipulation;
    min-height: 60px;
  }

  /* Improve error message visibility - only show styling when there's an error */
  .error-message {
    font-size: 14px;
    margin-top: 8px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #dc3545;
    display: block;
    min-height: 0;
  }

  /* Show error styling only when there's actual error text */
  .error-message:not(:empty) {
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(220, 53, 69, 0.3);
  }

  /* Better focus states for mobile */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #e60f04;
    box-shadow: 0 0 0 3px rgba(230, 15, 4, 0.1);
  }

  .car-visualization {
    order: 1;
  }

  .glass-selection {
    order: 2;
  }

  .car-diagram {
    max-width: 140px;
  }
}

/* Contact Section Styles */
.contact-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.contact-title {
  max-width: 50%;
  min-width: 150px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.contact-radio-options {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  margin-top: 0;
  align-items: flex-start;
}

.custom-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  background: white;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-radio:hover .radio-circle {
  border-color: #e60f04;
}

.custom-radio.selected .radio-circle {
  border-color: #e60f04;
  background: #e60f04;
}

.custom-radio.selected .radio-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.radio-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-left: 12px;
  white-space: nowrap;
}

.contact-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

.contact-option {
  flex: 1;
  max-width: 200px;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  min-height: 120px;
  width: 100%;
}

.contact-btn:hover {
  border-color: #e60f04;
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 15, 4, 0.1);
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: #e60f04;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text {
  font-weight: 600;
  color: #333;
}

.call-btn {
  background: linear-gradient(135deg, #e60f04 0%, #c40c03 100%);
  color: white;
  border-color: #e60f04;
}

.call-btn:hover {
  background: linear-gradient(135deg, #c40c03 0%, #a10a02 100%);
  border-color: #c40c03;
  color: white;
}

.call-btn .contact-icon {
  color: white;
}

.call-btn .contact-text {
  color: white;
}

.contact-phone {
  padding: 0 0 10px 0;
  text-align: center;
}

.phone-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.phone-display:hover {
  transform: scale(1.05);
}

.phone-icon-circle {
  width: 48px;
  height: 48px;
  background: #71c146;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.phone-display:hover .phone-icon-circle {
  background: #71c146;
}

.phone-number {
  font-size: 32px;
  font-weight: 800;
  color: #71c146;
  letter-spacing: 1px;
}

.phone-hours {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.phone-note {
  font-style: italic;
  color: #999;
}

/* Callback Form Styles */
.callback-form {
  margin-top: 30px;
  padding: 0px 90px;
}

.callback-form h4 {
  margin: 0 0 25px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.callback-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-field input,
.form-field select {
  padding: 14px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  height: 48px;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
}

.form-field input.error,
.form-field select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
  font-size: 12px;
  color: #dc3545;
  min-height: 12px;
  display: block;
}

.callback-button-container {
  margin-top: 25px;
  text-align: center;
}

.callback-submit-btn {
  background: #71c146;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.callback-submit-btn:hover:not(:disabled) {
  background: #5fa037;
  transform: translateY(-2px);
}

.callback-submit-btn:disabled {
  cursor: not-allowed;
  transform: none;
}

.callback-submit-btn.success {
  background: #28a745 !important;
}

.callback-submit-btn.error {
  background: #dc3545 !important;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  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;
  margin-right: 8px;
}

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

/* Resend Link */
.resend-link {
  text-align: center;
  margin-top: 10px;
  display: none;
}

.resend-link a {
  color: #666;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.resend-link a:hover {
  color: #333;
}

@media (max-width: 768px) {
  .contact-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .contact-title {
    max-width: 100%;
    font-size: 20px;
  }

  .contact-radio-options {
    align-self: stretch;
    justify-content: space-around;
  }

  .contact-options {
    flex-direction: column;
    gap: 15px;
  }

  .contact-option {
    max-width: 100%;
  }

  .contact-btn {
    min-height: 100px;
    padding: 15px;
  }

  .phone-number {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .callback-form {
    padding: 15px;
  }

  .callback-form-fields {
    gap: 15px;
  }
}
