
/* Yhdistetty CSS desktopille ja mobiilille (Poppins, värit, layoutit jne.) */
body {
  touch-action: manipulation;
  font-size: 16px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #1034A6;
}
.container {
  display: flex;
  flex-direction: row;
}
.summary-box {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  background: #026;
  color: #fefefe;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.summary-box h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.summary-description {
  font-size: 1rem;
  font-weight: 400;
  color: #F6F8FF;
  margin: 0 0 1.5rem 0;
  padding: 0 1rem;
  line-height: 1.5;
  max-width: 240px;
}
.price-display {
  width: 100%;
  max-width: 240px;
  text-align: center;
  margin-top: 2rem;
  border-top: 2px solid #ffdd00;
  border-bottom: 2px solid #ffdd00;
  padding: 1rem 0;
}
.total {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffdd00;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-info {
  font-size: 1rem;
  font-weight: 500;
  color: #F6F8FF;
  margin: 0 0 1.5rem 0;
  padding: 0 1rem;
  line-height: 1.5;
  max-width: 240px;
}

.contact-info a {
  color: #F6F8FF;
  text-decoration: underline;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: none;
  opacity: 0.8;
  color: #FFDD00;
}

.calculator {
  margin-left: 300px;
  width: calc(100% - 300px);
  padding: 2rem;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1034A6;
  border-bottom: 2px solid #FFDD00;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}
.window-item {
  background-color: #e4e9fc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-height: 400px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.window-item img {
  max-width: 100%;
  max-height: 50%;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.window-item p {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 20%;
}
.controls button, .controls input {
  font-size: 16px;
  text-align: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: none;
  max-height: none;
  flex: none;
}
.controls button {
  background-color: #FFDD00;
  border: 0px solid #000000;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.controls button:hover {
  background-color: #ffea00;
  transform: scale(1.05);
}
.controls input {
  border: 0px solid #000000;
  border-radius: 8px;
  background: white;
  pointer-events: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
@media (max-width: 768px) {
  .summary-box {
    display: none;
  }
  * {
    box-sizing: border-box;
    max-width: 100%;
  }
  
  body {
  touch-action: manipulation;
  font-size: 16px;
    margin: 0;
    overflow-x: hidden;
  }

   .calculator,
    .grid,
    .window-item,
    .contact-btn,
    .mobile-footer {
      max-width: 100vw;
      overflow-x: hidden;
    }
  .calculator {
    margin: 0;
    width: 100%;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .grid {
    max-width: 400px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #026;
    color: #F6F8FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 999;
    font-size: 1.25rem;
  }
  .mobile-price {
    font-weight: 550;
  }
  .contact-btn {
    background-color: #FFDD00;
    color: rgb(0, 0, 0);
    font-weight: 600;
    border: none;
    padding: 0.5rem 0.8rem;       /* VOI OLLA LIIKAA mobiilissa */
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    max-width: 45%;              /* tai esim. 150px */
    box-sizing: border-box;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #F6F8FF;
  margin: 20% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
  color: #026;
}
.modal-content p {
  margin: 0.5rem 0;
  color: #1034A6;
}
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #F6F8FF;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}


input, button {
  touch-action: manipulation;
}


input,
button,
select,
textarea {
  font-size: 16px !important;
}
