@font-face {
    font-family: 'MTNBrighterSans';
    src: url('fonts/MTNBrighterSans-Regular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
/* Header */
.header_mtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 15px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 16px;
  background-color: #004e6f;
  color: white;
}
.header_mtn .back-btn,
.header_mtn .close-btn {
  position: static;
}

.header_mtn .back-btn {
  left: 15px;
}
.header_mtn .close-btn {
  right: 15px;
}

/* Tabs */
.tab-buttons {
  display: flex;
  justify-content: center;
  margin: 20px;
  border-radius: 25px;
  background-color: #f0f0f0;
  padding: 3px;
}
.tab-buttons button {
  border: none;
  flex: 1;
  border-radius: 25px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  background: transparent;
  cursor: pointer;
}
.tab-buttons button.active {
  background: #ffffff;
  color: #004e6f;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Container */
.form-container {
  max-width: 350px;
  margin: auto;
  padding: 0 15px;
}


.form-group {
  position: relative;
  margin-bottom: 40px;
}

.form-label {
  position: absolute; 
  top: 0;
  left: 15px;
  transform: translateY(-50%); 
  background: #ffffff; 
  padding: 0 5px;
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}


.form-input,
.form-select {
  width: 100%;
  border-radius: 15px; 
  border: 1px solid #adb5bd;
  padding: 20px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  background-color: transparent; 
}


.form-input:focus,
.form-select:focus {
  border-color: #009933; 
}

.form-input::placeholder,
.form-select::placeholder {
    font-family: 'MTNBrighterSans', sans-serif;
    font-size: 14px;
    color:black;
}




.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}


.input-group {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #adb5bd;
  border-radius: 15px;
  overflow: hidden;
  background-color: #ffffff;
}


.input-group input {
  flex: 1;
  border: none;
  padding: 16px;
  padding-right: 40px; 
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}


.input-group .input-icon {
  position: absolute;
  right: 12px;
  font-size: 20px;
  color: #6c757d;
  pointer-events: none; 
}


.input-group + .form-label {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 0 5px;
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.input-group input:focus + .form-label,
.input-group input:not(:placeholder-shown) + .form-label {
  top: -8px;
  font-size: 12px;
  color: #009933;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 30px;
  margin-bottom: 10px;
}
.checkbox-group label {
  font-size: 14px;
  color: #6c757d;
}

.student_d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.student_d .muted_side {
  color: #969393;
  font-weight: 400;
}

.student_d .bold_side {
  color: #796f6f;
  font-weight: 600;
}

.student_info {
  padding: 18px;
  /* background-color: #eeebeb; */
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.supplementary_card-link {
  display: block;
  text-decoration: none;
  margin-bottom: 15px;
  margin-top: 10px;
}

.supplementary_card {
  padding: 18px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.supplementary_card-link:hover .supplementary_card,
.supplementary_card-link:focus .supplementary_card {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.supplementary_card-link:hover .card-text {
  color: #007bff;
}

.supplementary_scroll {
  padding: 0 10px;
  margin-top: 40px;
  margin-bottom: 20px;

  max-height: 400px;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
}

.student_trans {
  border-radius: 5px;
  padding: 14px;
  background-color: #eeebeb;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.next-btn {
  width: 100%;
  border-radius: 25px;
  padding: 14px;
  background-color: #004e6f;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 40px;
}

.edit-btn {
  width: 100%;
  border-radius: 25px;
  padding: 14px;
  background-color: white;
  border: 1px solid #c0c0c0;
  color: #6c757d;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

.available_balance {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 40px;
    font-family: 'MTNBrighterSans', 'Lane', sans-serif;
    font-size: 11px;
}


.form-step-two {
  position: relative;
  margin-bottom: 8px;
}

.amount_input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #adb5bd;
  border-radius: 15px;
  background-color: #ffffff;
  overflow: hidden;
  padding-left: 16px;
}

.amount_input .shiling-word {
  font-size: 18px;
  font-weight: 600;
  color: #6c757d;
  margin-right: 8px;
  white-space: nowrap;
  pointer-events: none;
}

.amount_input input {
  flex: 1;
  border: none;
  padding: 16px 16px 16px 0;
  font-size: 17px;
  outline: none;
  box-sizing: border-box;
  text-align: right;
}

.amount-label {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 0 5px;
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.amount_input input:focus ~ .amount-label,
.amount_input input:not(:placeholder-shown) ~ .amount-label {
  top: -8px;
  font-size: 12px;
  color: #009933;
}

.amount_input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #adb5bd;
  border-radius: 15px;
  background-color: #ffffff;
  overflow: hidden;
  padding-left: 16px;
}

.amount_input .shiling-word {
  font-size: 18px;
  font-weight: 600;
  color: #6c757d;
  margin-right: 8px;
  white-space: nowrap;
  pointer-events: none;
}

.amount_input input {
  flex: 1;
  border: none;
  padding: 16px 16px 16px 0;
  /* no left padding since UGX is there */
  font-size: 17px;
  outline: none;
  box-sizing: border-box;
  text-align: right;
  /* align amount to the right */
}

.amount-label {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 0 5px;
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.amount_input input:focus ~ .amount-label,
.amount_input input:not(:placeholder-shown) ~ .amount-label {
  top: -8px;
  font-size: 12px;
  color: #009933;
}

.payment-processing {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.payment-processing .pp-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 550px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.payment-processing .pp-card-header {
  background-color: #004e6f;
  padding: 32px 16px;
}

.payment-processing .pp-card-header img {
  height: 124.4px;
  width: 150.2px;
}

.payment-processing .pp-card-body {
  padding: 15px 15px 15px;
}

.payment-processing .pp-card-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: #004e6f;
  margin-bottom: 16px;
}

.payment-processing .pp-card-body p {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 0;
}

.payment-processing .pp-card-body p strong {
  font-weight: 600;
}

.payment-processing .pp-card-footer {
  padding: 20px;
}

.payment-processing .pp-done-btn {
  display: block;
  width: 100%;
  background-color: #004e6f;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  padding: 14px 0;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.payment-processing .pp-done-btn:hover {
  background-color: #006b96;
}

/* Force full viewport width only on small + medium screens */
@media (max-width: 1199px) {
  .header_mtn {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

.school_name_small {
    display: inline-block;
    max-width: 180px;
    word-wrap: break-word;
    white-space: normal;
    text-align: right;
}

}

/* Medium screens (tablets >= 768px) */
@media (min-width: 768px) {
  .form-container {
    max-width: 500px;
  }
  .tab-buttons button {
    font-size: 15px;
    padding: 12px 0;
  }
  .header_mtn {
    font-size: 18px;
    padding: 16px;
  }
}

/* Large screens (desktops >= 1200px) */
@media (min-width: 1200px) {
  .form-container {
    max-width: 600px;
  }
  .tab-buttons button {
    font-size: 16px;
  }
  .header_mtn {
    font-size: 20px;
    padding: 18px;
    width: 100%; 
  }
}
