/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9fafe;
  color: #222;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  align-items: flex-start;
}

.container {
  background: #fff;
  max-width: 400px;
  width: 100%;
  padding: 30px 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #0d47a1;
}

p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

.calculator label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

input[type="time"] {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1.8px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

input[type="time"]:focus {
  outline: none;
  border-color: #0d47a1;
  box-shadow: 0 0 6px rgba(13,71,161,0.3);
}

.radio-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.radio-group label {
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  color: #0d47a1;
}

button#calculate-btn {
  width: 100%;
  background: #0d47a1;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button#calculate-btn:hover {
  background: #083974;
}

.result {
  margin-top: 30px;
  font-size: 1rem;
  line-height: 1.5;
  color: #0d47a1;
  font-weight: 600;
  white-space: pre-line;
  text-align: center;
}

@media (max-width: 450px) {
  .container {
    padding: 20px 15px;
  }
}
