/* Styl dla kroku 3 */
#step3 {
  padding: 20px;
}

#step3 .step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

/* Ensure the "Next" button is displayed on the right side */
#step3 .btn-next {
  margin-left: auto;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-indicator div {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-bottom: 3px solid #ddd;
  font-weight: bold;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.step-indicator div.active {
  color: #007bff;
  border-color: #007bff;
}

.step-indicator div:hover:not(.active) {
  color: #0056b3;
}

.progress-bar {
  height: 5px;
  background-color: #007bff;
  width: 0; /* Ensure the progress bar is hidden initially */
  transition: width 0.3s;
}

.step3-substep-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step3-substep-indicator div {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-bottom: 3px solid #ddd;
  font-weight: bold;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.step3-substep-indicator div.active {
  color: #007bff;
  border-color: #007bff;
}

.step3-substep-indicator div:hover:not(.active) {
  color: #0056b3;
}

.step3-substep {
  display: none;
}

.step3-substep.active {
  display: block;
}

/* Styl dla kafelków wyboru ramy */
#frame-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Wyjustowanie do środka */
}

.frame-item {
  width: calc(33.333% - 20px);
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, border 0.3s;
}

.frame-item:hover {
  background-color: #ced4da;
}

.frame-item.selected {
  border: 2px solid #007bff;
  background-color: #d1ecf1;
}

.frame-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.frame-item h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.frame-item p {
  color: #666;
  font-size: 14px;
}

/* Styl dla kafelków montażu */
#mounting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Wyjustowanie do środka */
}

.mounting-item {
  width: calc(33.333% - 20px);
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, border 0.3s;
}

.mounting-item:hover {
  background-color: #ced4da;
}

.mounting-item.selected {
  border: 2px solid #007bff;
  background-color: #d1ecf1;
}

.mounting-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.mounting-item h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.mounting-item p {
  color: #666;
  font-size: 14px;
}

/* Styl dla kontenera wyboru materiału */
#material-selection {
  flex: 1;
  margin-bottom: 20px;
}

#material-selection h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
  text-transform: uppercase; /* Drukowane litery */
  text-align: center; /* Wyjustowanie do środka */
  border-bottom: 1px solid #ddd  !important; /* Jaśniejsza cienka linia pod spodem */
  padding-bottom: 5px; /* Odstęp wewnętrzny dla estetyki */
  display: block;
  width: 75%; /* Ustawia długość linii na 75% szerokości kontenera */
  margin: 0 auto; /* Wyśrodkowanie kontenera */
}

#material-selection .radio-group, #color-selection .radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* Wyjustowanie do lewej */
  margin-left: 20%; /* Przesunięcie w prawo o 20% szerokości kontenera */
}

#material-selection .radio-group label, #color-selection .radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  justify-content: flex-start; /* Wyjustowanie do lewej */
  width: 100%; /* Ustawienie szerokości na 100% */
}

#material-selection .radio-group input[type="radio"], #color-selection .radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#material-selection .radio-group input[type="radio"]:hover, #color-selection .radio-group input[type="radio"]:hover {
  background-color: #f0f0f0;
}

#material-selection .radio-group input[type="radio"]:checked, #color-selection .radio-group input[type="radio"]:checked {
  background-color: #000;
  border-color: #000;
}

#material-selection .radio-group input[type="radio"]:checked::after, #color-selection .radio-group input[type="radio"]:checked::after {
  content: '✔';
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Styl dla kontenera wyboru koloru */
#color-selection {
  flex: 1;
  margin-bottom: 20px;
}

#color-selection h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
  text-transform: uppercase; /* Drukowane litery */
  text-align: center; /* Wyjustowanie do środka */
  border-bottom: 1px solid #ddd !important; /* Cienka linia pod spodem */
  padding-bottom: 5px; /* Odstęp wewnętrzny dla estetyki */
  display: block;
  width: 75%; /* Ustawia długość linii na 75% szerokości sekcji */
  margin: 0 auto; /* Wyśrodkowanie kontenera */
}

#color-selection label {
  display: inline-block; /* Ustawienie inline-block dla napisu */
  margin-top: 0; /* Usuń górny margines */
  font-weight: bold;
  text-align: left; /* Wyjustowanie do lewej */
}

#color-selection input[type="text"] {
  display: inline-block; /* Ustawienie inline-block dla okienka */
  width:60px; /* Szerokość okienka na 4 cyfry */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px; /* Zwiększenie czcionki */
  font-weight: bold; /* Pogrubienie wpisywanych cyfr */
  position: relative;/* Ustawienie pozycji względem kontenera */
  top: 4px; /* Przesunięcie okienka w dół o 2 px */
}

#color-selection .ral-input-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Wyjustowanie do lewej */
  gap: 10px; /* Odstęp między napisem a okienkiem */
  width: 100%; /* Ustawienie szerokości na 100% */
  margin-left: 40%; /* Przesunięcie w prawo o 30% szerokości kontenera */
}

#regulation-selection {
  flex: 1;
  margin-bottom: 20px;
  width: 50%; /* Occupy half the width */
  margin-left: 0; /* Align to the left */
}

#regulation-selection h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
  text-transform: uppercase; /* Drukowane litery */
  text-align: center; /* Wyjustowanie do środka */
  border-bottom: 1px solid #ddd !important; /* Cienka linia pod spodem */
  padding-bottom: 5px; /* Odstęp wewnętrzny dla estetyki */
  display: block;
  width: 75%; /* Ustawia długość linii na 75% szerokości sekcji */
  margin: 0 auto; /* Wyśrodkowanie kontenera */
}

#regulation-selection .radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* Wyjustowanie do lewej */
  margin-left: 20%; /* Przesunięcie w prawo o 20% szerokości kontenera */
}

#regulation-selection .radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  justify-content: flex-start; /* Wyjustowanie do lewej */
  width: 100%; /* Ustawienie szerokości na 100% */
}

#regulation-selection .radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#regulation-selection .radio-group input[type="radio"]:hover {
  background-color: #f0f0f0;
}

#regulation-selection .radio-group input[type="radio"]:checked {
  background-color: #000;
  border-color: #000;
}

#regulation-selection .radio-group input[type="radio"]:checked::after {
  content: '✔';
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#accessories-selection {
  flex: 1;
  margin-bottom: 20px;
  width: 50%; /* Occupy half the width */
  margin-left: 50%; /* Align to the right */
  margin-top: -250px !important;
}

#accessories-selection h4 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
  text-transform: uppercase; /* Drukowane litery */
  text-align: center; /* Wyjustowanie do środka */
  border-bottom: 1px solid #ddd !important; /* Cienka linia pod spodem */
  padding-bottom: 5px; /* Odstęp wewnętrzny dla estetyki */
  display: block;
  width: 75%; /* Ustawia długość linii na 75% szerokości sekcji */
  margin: 0 auto; /* Wyśrodkowanie kontenera */
}

#accessories-selection .radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* Wyjustowanie do lewej */
  margin-left: 20%; /* Przesunięcie w prawo o 20% szerokości kontenera */
}

#accessories-selection .radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  justify-content: flex-start; /* Wyjustowanie do lewej */
  width: 100%; /* Ustawienie szerokości na 100% */
}

#accessories-selection .radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#accessories-selection .radio-group input[type="radio"]:hover {
  background-color: #f0f0f0;
}

#accessories-selection .radio-group input[type="radio"]:checked {
  background-color: #000;
  border-color: #000;
}

#accessories-selection .radio-group input[type="radio"]:checked::after {
  content: '✔';
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.selection-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
