html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom right, #ffffff, #e9ecef);
  scroll-behavior: smooth;
}

body.dark-mode {
  background: linear-gradient(to bottom right, #222, #333);
  color: #f0f0f0;
}

form {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  padding-bottom: 60px;
  position: relative;
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: #ccc;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #3498db, #2ecc71);
  transition: width 0.3s ease;
}

body.dark-mode form,
body.dark-mode .estimate-container {
  background: #2c2c2c;
  color: #f0f0f0;
}

body.dark-mode input,
body.dark-mode button {
  background-color: #444;
  color: #f0f0f0;
  border-color: #666;
}

body.dark-mode .image-container h3 {
  color: #ccc;
}

body.dark-mode a {
  color: #80c9ff;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.logo-container img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #333;
}

body.dark-mode .theme-toggle {
  color: #f0f0f0;
}

.theme-toggle:hover {
  transform: rotate(15deg);
}

h1, h2, h3, h4, h5, h6 {
  background: linear-gradient(to right, #3498db, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.step.active {
  display: flex;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.image-selection {
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  min-width: 150px;
  box-sizing: border-box;
  padding: 5px;
}

.image-selection label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.image-container:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-container h3 {
  margin: 10px 0;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.image-selection input[type="radio"] {
  display: none;
}

.image-selection input[type="radio"]:checked + .image-container {
  border: 3px solid #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.7);
  background: #f0faff;
}

.image-selection input[type="radio"]:checked + .image-container h3 {
  color: #3498db;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
}

button {
  background: linear-gradient(to right, #3498db, #2ecc71);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover:not(:disabled) {
  background: linear-gradient(to right, #2c80b4, #27ae60);
  transform: translateY(-2px);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

body.dark-mode button:disabled {
  background: #555;
  color: #999;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  position: sticky;
  bottom: 20px;
  background: inherit;
  padding: 10px 0;
}

button i {
  margin: 0 6px;
}

.estimate-container {
  max-width: 700px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
  min-height: 100vh;
}

.estimate-container img {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

.estimate-price p {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-top: 20px;
}

body.dark-mode .estimate-price p {
  color: #f9d342;
}

.benefits {
  text-align: left;
  margin-top: 20px;
  line-height: 1.5;
  font-size: 1rem;
}

.benefits ul {
  list-style: none;
  padding-left: 0;
}

.benefits li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.benefits li::before {
  content: '✔';
  color: #27ae60;
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  .image-selection {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .estimate-container {
    padding: 30px 20px;
  }

  .estimate-container h2,
  .estimate-container h3 {
    font-size: 1.4rem;
  }

  .benefits {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .image-row {
    flex-direction: column;
  }

  .image-selection {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .estimate-container {
    padding: 20px 15px;
  }

  .estimate-container h2,
  .estimate-container h3 {
    font-size: 1.2rem;
  }

  .benefits {
    font-size: 0.95rem;
  }

  .benefits li {
    padding-left: 20px;
    font-size: 0.95rem;
  }

  .benefits li::before {
    top: 2px;
  }
}