* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 0;
  color: #333;
}

header {
  background: linear-gradient(to right, #0f5bd2, #1ca4ff);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 26px;
}

/* Navigointivalikko */
#nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #88b2f7;
  overflow: hidden;
  text-align: center;
}

#nav li {
  display: inline;
  text-align: center;
}

li a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 1% 1.2%;
  text-decoration: none;
}

li a:visited {
  color: white;
}

a:hover:not(.active) {
  background-color: #70a3f5;
}

.active {
  background-color: #5e95ed;
}

main {
  max-width: 90%;
  margin: 0 auto;
  padding: 1%;
  background-color: white;
}

.img-float {
  float: left;
  width: 50%;
  padding: 1%;
}

.img-float img {
  width: 100%;
}

h2 {
  color: #0f5bd2;
  margin-top: 40px;
  font-size: 22px;
}

.info {
  margin-bottom: 20px;
}

.info ul {
  padding-left: 20px;
  line-height: 1.6;
}

.info p {
  margin-bottom: 10px;
}

img {
  max-width: 100%;
  width: 70%;
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

h3 {
  color: #0f5bd2;
  padding: 10px;
  border-radius: 6px;
  font-size: 18px;
  text-align: center;
}

.calendar-container {
  max-width: 70%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.calendar-box {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contract-link {
  margin-top: 50px;
  text-align: center;
}

.contract-link a {
  text-decoration: none;
  color: #0f5bd2;
  font-weight: 600;
}

.contract-link a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #eaeaea;
  font-size: 14px;
  margin-top: 40px;
}

.call-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #27ae60;
  color: white;
  padding: 12px 18px;
  border-radius: 40px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 1000;
}

/* Yhteydenottolomakkeen tyylittely */
.yhteydenottolomake {
max-width: 500px;
margin-top: 20px;
padding: 20px;
background-color: #f9f9f9;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
font-family: sans-serif;
}

.yhteydenottolomake h2 {
text-align: center;
margin-bottom: 20px;
font-size: 1.4em;
}

.yhteydenottolomake label {
display: block;
margin-bottom: 6px;
font-weight: 600;
}

.yhteydenottolomake input,
.yhteydenottolomake select,
.yhteydenottolomake textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1em;
}

.yhteydenottolomake button {
background-color: #007bff;
color: white;
border: none;
padding: 12px 20px;
font-size: 1em;
border-radius: 6px;
cursor: pointer;
width: 100%;
}

.yhteydenottolomake button:hover {
background-color: #0056b3;
}

.kiitosviesti {
display: none;
text-align: center;
margin-top: 20px;
color: green;
font-weight: bold;
}

.ehdot {
margin-bottom: 15px;
font-size: 0.95em;
}

.ehdot input[type="checkbox"] {
margin-bottom: 5px;
display: block;
}

.ehdot label {
display: block;
line-height: 1.3;
}

.ehdot a {
color: #007bff;
text-decoration: underline;
}

.yhteydenottolomake form label {
display: block;
margin-top: 12px;
}

/* Jos näyttö pieni, niin max-width on 100% */
@media (max-width: 768px) {
  .container {
    max-width: 100;
  }
}