* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  min-height: 100vh;
  /* padding: 20px; */
}

.header {
  background-color: black;
  padding: 1rem;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title h1 {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.sub-header {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.2rem;
}

/* Tuition Fee Calculator Modern Redesign */

.fee-form-card {
  background: #f1f0f0;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 65vw;
  margin: 2.5rem auto 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: 1.5px solid #e9ecef;
}

.fee-form-card form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fee-form-grid-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.fee-from-credit-semesterfee-row{
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 2fr;
}

.fee-form-waiver-scholarship-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
}

.input-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.input-container label {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #2c3e50;
  font-size: 1.08rem;
  font-family: 'Lexend Deca', sans-serif;
}

.input-container input,
.input-container select {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1.08rem;
  transition: all 0.3s;
  background: #fff;
}

.input-container input:focus,
.input-container select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

#calculateBtn {
  width: 100%;
  padding: 1rem 0;
  background: linear-gradient(135deg, #d39562 0%, #ff6200 100%);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.08);
}

#calculateBtn:hover {
  background: linear-gradient(135deg, #ff6200 0%, #d39562 100%);
  transform: translateY(-2px);
}

.fee-breakdown-card {
  display: none;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
  border: 2px solid #28a745;
  border-radius: 15px;
  max-width: 700px;
  margin: 3.5rem auto 3.5rem auto;
  animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1);
  padding: 2rem 1.5rem;
}

.fee-breakdown-card.show {
  display: block;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.2rem;
  margin-bottom: 0.2rem;
}

.breakdown-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.08rem;
  font-family: 'Lexend Deca', sans-serif;
  text-align: left;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.breakdown-value {
  font-weight: 700;
  font-size: 1.18rem;
  color: #285248;
  text-align: right;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.breakdown-hr-orange {
  border: none;
  border-top: 2px solid orange;
  margin: 0.7rem 0 0.7rem 0;
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 100vw;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 900px) {
  .fee-form-card, .fee-breakdown-card {
    max-width: 90vw;
    padding: 1.2rem 0.5rem;
  }
  .fee-form-grid-row {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .main{
    margin: auto 1.2rem;
  }
  .fee-form-card, .fee-breakdown-card {
    max-width: 96vw;
    padding: 1rem 0.9rem;
  }
  .fee-form-waiver-scholarship-row, .fee-from-credit-semesterfee-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .breakdown-row {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.6rem 0.1rem;
  }
}