/* Kontener główny - ustawienie w 2 kolumny i wyśrodkowanie */
#smart-home-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  margin: 30px auto;
  gap: 30px;
  padding: 0 20px;
}

/* Sekcja zdjęcia i ikon (po lewej) */
#smart-home-left {
  display: flex;
  flex-direction: column;
  width: 65%;
  gap: 20px;
}

/* Sekcja obrazu */
#smart-home-image {
  width: 100%;
  height: 670px;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  background: #fff;
  transition: height 0.3s ease;
}

#smart-home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Strzałki wewnątrz zdjęcia */
#smart-home-image button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff9800;
  color: white;
  border: 3px solid #ff9800;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

#smart-home-image button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  background: #ff9800;
}

#prev-image {
  left: 15px;
}

#next-image {
  right: 15px;
}

/* Sekcja ikon - pojawiają się po rozwinięciu */
#smart-home-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 5px 0;
  background-color: #fff;
  margin-top: 5px;
  height: 130px;
  transition: visibility 0s, opacity 0.3s ease;
}

/* Ukrywanie ikon na tabletach i telefonach */
@media (max-width: 1024px) {
  #smart-home-icons {
    display: none !important;
  }
}

/* Gdy ikony są pokazane, zwiększa się wysokość sekcji obrazu */
.show-icons #smart-home-image {
  height: 800px;
}

/* Stylizacja ikon */
.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  margin: 5px;
}

.icon-box:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icon-box.active {
  background-color: #e3e3e3;
  border-color: #ff9800;
}

.icon-box svg {
  width: 55%;
  height: 55%;
  fill: gray;
  transition: fill 0.3s ease;
}

.icon-box:hover svg {
  fill: #ec2e47;
}

.icon-box.active svg {
  fill: #ec2e47 !important;
}

/* Sekcja formularza (po prawej) */
#smart-home-form-container {
  width: 35%;
  height: 670px;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid #ddd;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: height 0.3s ease;
}

/* Gdy ikony są pokazane, zwiększa się wysokość formularza */
.show-icons #smart-home-form-container {
  height: 800px;
}

/* Stylizacja pomarańczowego scrollbar */
#smart-home-form-container::-webkit-scrollbar {
  width: 10px;
}

#smart-home-form-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 8px;
}

#smart-home-form-container::-webkit-scrollbar-thumb {
  background: #ff9800;
  border-radius: 8px;
  border: 2px solid #f0f0f0;
}

#smart-home-form-container::-webkit-scrollbar-thumb:hover {
  background: #e57300;
}

/* Stylizacja formularza */
#smartHomeForm {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#smartHomeForm h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

.form-section {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  line-height: 1.6;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

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

/* Poprawiona stylizacja dla inputów tekstowych i textarea */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
}

textarea {
  resize: vertical;
  height: 100px;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.6;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Stylizacja numeru telefonu */
.phone-input {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#phonePrefix {
  width: 60px;
  padding: 12px;
  text-align: center;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

#phone {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Stylizacja suwaków */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 5px;
  background: #f3a500;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ff9800;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  position: relative;
  top: -7px;
}

/* Stylizacja przycisku */
button {
  display: block;
  margin: 20px auto;
  padding: 15px 25px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Stylizacja okna pop-up */
#thankYouPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popupContent {
  background: #fff;
  padding: 20px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#popupContent p {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

#popupContent button {
  padding: 10px 20px;
  background-color: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

#popupContent button:hover {
  background-color: #0056cc;
}

/* Stylizacja responsywna */
@media (max-width: 1200px) {
  #smart-home-container {
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  #smart-home-left {
    width: 100%;
  }

  #smart-home-image {
    width: 100%;
    height: auto;
  }

  #smart-home-icons {
    flex-wrap: wrap;
  }

  #smart-home-form-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
  }
}

@media (max-width: 800px) {
  #smart-home-container {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  #smart-home-left {
    width: 100%;
  }

  #smart-home-image {
    width: 90%;
    height: auto;
    margin: 0 auto 20px auto;
  }

  #smart-home-icons {
    display: none !important;
  }

  #smart-home-form-container {
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: none;
  }
}