/* Application Process Styles */
.application-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.step.active {
  background: #4caf50;
  color: white;
}

.step.completed {
  background: #4caf50;
  color: white;
}

.step-line {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background: #4caf50;
  color: white;
}

.btn-primary:hover {
  background: #45a049;
}

.btn-secondary {
  background: #666;
  color: white;
  margin-right: 1rem;
}

.btn-secondary:hover {
  background: #555;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Course Selection Styles */
.course-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.course-card:hover {
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.1);
}

.course-card.selected {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.05);
}

/* Review Page Styles */
.review-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.review-item {
  margin-bottom: 1rem;
}

.review-label {
  font-weight: 500;
  color: #666;
}

/* Confirmation Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .application-container {
    margin: 1rem;
    padding: 1rem;
  }

  .step-indicator {
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .btn-secondary {
    margin-right: 0;
  }
}

/* Invitation Letter Styles */
.invitation-letter {
  background: #fff;
  padding: 40px;
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
}

.letter-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #4caf50;
  background: linear-gradient(to right, #4caf50, #45a049);
  margin: -40px -40px 30px -40px;
  padding: 30px 40px;
  border-radius: 8px 8px 0 0;
}

.school-logo {
  width: 100px;
  height: 100px;
  margin-right: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-logo i {
  color: #4caf50;
  font-size: 3em;
}

.school-logo img {
  width: 100%;
  height: auto;
}

.school-info h2 {
  color: #fff;
  margin: 0 0 10px 0;
  font-family: "Playfair Display", serif;
  font-size: 2.2em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.school-info p {
  margin: 5px 0;
  color: #fff;
  font-size: 0.95em;
}

.letter-body {
  font-family: "Poppins", sans-serif;
  color: #333;
}

.letter-body h3 {
  color: #4caf50;
  text-align: center;
  margin-bottom: 30px;
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  position: relative;
  padding-bottom: 15px;
}

.letter-body h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #4caf50, #45a049);
  border-radius: 2px;
}

.letter-content {
  line-height: 1.6;
}

.letter-content p {
  margin-bottom: 15px;
}

.course-details {
  background: #f8f9fa;
  padding: 25px;
  margin: 25px 0;
  border-left: 4px solid #4caf50;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-details p {
  margin: 12px 0;
  color: #444;
}

.payment-details {
  background: #f8f9fa;
  padding: 25px;
  margin: 25px 0;
  border-left: 4px solid #4caf50;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-details p {
  margin: 8px 0;
  color: #444;
}

.letter-content h4 {
  color: #4caf50;
  margin: 30px 0 15px 0;
  font-family: "Playfair Display", serif;
  font-size: 1.3em;
  position: relative;
  padding-left: 15px;
}

.letter-content h4:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #4caf50;
  border-radius: 2px;
}

.letter-content ul {
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: none;
}

.letter-content ul li {
  margin: 10px 0;
  padding-left: 25px;
  position: relative;
}

.letter-content ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.closing-remark {
  font-style: italic;
  margin: 35px 0;
  color: #555;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.signature-block {
  margin-top: 60px;
  text-align: right;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.principal-name {
  margin: 10px 0;
  font-weight: 600;
  color: #4caf50;
}

.signature-date {
  margin-top: 10px;
  color: #666;
}

/* Button styles for the letter */
.form-actions {
  margin-top: 30px;
  text-align: center;
}

.btn-primary {
  background: #4caf50;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.btn-primary:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: #f8f9fa;
  color: #4caf50;
  padding: 12px 30px;
  border: 2px solid #4caf50;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #4caf50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for the invitation letter */
@media (max-width: 768px) {
  .invitation-letter {
    padding: 20px;
    margin: 10px;
  }

  .letter-header {
    flex-direction: column;
    text-align: center;
    margin: -20px -20px 20px -20px;
    padding: 20px;
  }

  .school-logo {
    margin: 0 0 20px 0;
  }

  .course-details,
  .payment-details {
    padding: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin: 10px 0;
  }
}
