/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #198754;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
  height: 90px;
  margin-bottom: 10px;
}

/* Section Styling */
section {
  padding: 60px 20px;
  text-align: center;
}

/* Headings */
h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #555;
}

/* Form */
form {
  max-width: 480px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

input, select, button {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus, select:focus {
  border-color: #007bff;
  outline: none;
}

button {
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

button:hover {
  background: #f4b400;
}

/* Label alignment */
form label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #333;
}

/* Option group (radio buttons styled as buttons) */
.option-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.option-group input[type="radio"] {
  display: none;
}

.option-group label {
  padding: 10px 20px;
  background-color: #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  user-select: none;
}

.option-group input[type="radio"]:checked + label {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border-color: #0056b3;
}
/* Golden checkbox labels inline */
#goldenContainer label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px; /* Space between checkboxes */
    white-space: nowrap; /* Prevent text from wrapping to the next line */
  }
  
  #goldenContainer label span {
    margin-right: 8px; /* Space between the text and the checkbox */
    white-space: nowrap; /* Prevent text from wrapping */
  }
#olevelContainer select,
#olevelContainer h3 {
  font-size: 0.95rem;
}
.olevel-grade,
.alevel-grade {
  appearance: none;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 6px 30px 6px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23999" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}


  .department-info {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .department-info .department-heading {
    font-size: 1.8em;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .department-info p {
    font-size: 1.2em;
    line-height: 1.5;
  }
  
  .department-info strong {
    color: #333;
  }
  
  .semester-fees {
    background-color: #e9ecef;
    border-radius: 8px;
    margin: 10px 0;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .semester-fees p {
    font-size: 1.1em;
  }
  
  .semester-fees strong {
    font-weight: bold;
  }
  
  .semester-fees hr {
    border: 1px solid #ccc;
    margin-top: 10px;
  }
  
  .total-costs {
    background-color: #fff3e6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .total-costs p {
    font-size: 1.2em;
    line-height: 1.5;
  }
  
  .total-costs strong {
    font-weight: bold;
  }
  
  .total-costs hr {
    border: 1px solid #ccc;
    margin-top: 10px;
  }
  
  .result-card p {
    font-size: 1.2em;
    line-height: 1.5;
  }
  
  #result h3 {
    font-size: 1.6em;
    color: #007bff;
  }
  
/* Result */
.result-card {
  background: #ffffff;
  border-left: 5px solid #007bff;
  padding: 25px 30px;
  margin: 40px auto;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  animation: slideIn 0.5s ease-in-out;
}

.hidden {
  display: none;
}


/* Footer */
footer {
  background-color: #198754;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 60px;
}

/* Animations */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
