/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #fceabb, #f8b500);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.calculator {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

/* Header Styles */
h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.icon-small {
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  vertical-align: middle;
  margin-right: 10px;
}

.aim {
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #666;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

input[type="date"] {
  width: 100%;
  padding: 12px;
  font-size: clamp(0.9rem, 3vw, 1rem);
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  
}

button {
  width: 100%;
  padding: 14px;
  background-color: #f8b500;
  border: none;
  color: #fff;
  font-size: clamp(1rem, 3vw, 1.1rem);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}

button:hover {
  background-color: #e0a300;
}

/* Result Section */
.result {
  margin-top: 25px;
  background: #fdf6e3;
  padding: 20px;
  border-radius: 10px;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  display: none;
}

.result-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.result-card {
  background: #fff9f0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.highlight {
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  font-weight: bold;
  color: #333;
  margin: 12px 0;
  line-height: 1.3;
}

/* Additional Info Section */
.additional-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.info-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  color: #b30059;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.icon {
  margin-right: 10px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.milestones ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.milestones li {
  margin-bottom: 8px;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Progress Bar Styles */
.progress-container {
  width: 100%;
  background-color: #f3f3f3;
  border-radius: 10px;
  margin: 15px 0 8px;
  overflow: hidden;
}

.progress-bar {
  height: 30px;
  background-color: #f8b500;
  text-align: center;
  line-height: 30px;
  color: white;
  position: relative;
  transition: width 0.5s ease;
}

.progress-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  color: #666;
  margin-top: 5px;
}

/* Content Sections */
section {
  background-color: #fff2f4;
  padding: clamp(20px, 4vw, 30px);
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  max-width: 100%;
}

section h2 {
  color: #b30059;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 15px;
  text-align: left;
}

section p {
  color: #222;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 15px;
}

section ol {
  padding-left: 25px;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  line-height: 1.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  body {
    padding: 15px;
    display: block;
  }
  
  .calculator {
    padding: 20px;
    margin: 0 auto;
  }
  
  .result-main, .additional-info {
    grid-template-columns: 1fr;
  }
  
  .highlight {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
  
  .progress-bar {
    height: 25px;
    line-height: 25px;
  }
}

@media (min-width: 1200px) {
  .calculator {
    padding: 40px;
  }
  
  .result-main {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .additional-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print Styles */
@media print {
  body {
    background: none;
    padding: 0;
  }
  
  .calculator {
    box-shadow: none;
    padding: 0;
    max-width: 100%;
  }
  
  button {
    display: none;
  }
  
  .result {
    background: none;
    padding: 0;
  }
}
