/* =========================
   GENERAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Elegant deep gradient */
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
}

/* =========================
   HEADER
========================= */
.apply-header {
  width: 100%;
  text-align: center;
  padding: 50px 20px 30px 20px;
  background: linear-gradient(to right, #1e3c72, #2a5298);
  color: #fff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: fadeInDown 1s ease forwards;
}

.apply-header .logo {
  width: 200px;
  margin-bottom: 20px;
  animation: rotateIn 1s ease forwards;
}

.apply-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.apply-header p {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* =========================
   CARD SECTIONS
========================= */
.card {
  background: #ffffffcc;
  border-radius: 20px;
  padding: 25px 25px;
  margin: 25px 0;
  width: 95%;
  max-width: 900px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.card h2 {
  margin-bottom: 15px;
  color: #1e3c72;
  font-size: 1.6rem;
}

/* =========================
   INPUTS & TEXTAREAS
========================= */
input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #fbbc04;
  box-shadow: 0 0 12px rgba(251, 188, 4, 0.5);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* =========================
   COURSE CARDS
========================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.course-card {
  background: #f7f7f7;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 28px rgba(0,0,0,0.2);
}

.course-card input[type="checkbox"] {
  position: absolute;
  top: 3px;
  left: 15px;
  transform: scale(1.3);
  cursor: pointer;
}

.course-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.course-card img:hover {
  transform: scale(1.05);
}

.course-card h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: #1e3c72;
}

.course-card p {
  font-weight: bold;
  color: #fbbc04;
  font-size: 1rem;
}

/* =========================
   TOTAL BOX
========================= */
.total-box {
  text-align: center;
  background: #1e3c72;
  color: #fff;
  padding: 18px;
  border-radius: 18px;
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: pulse 2s infinite;
}

/* =========================
   BUTTONS
========================= */
.pay-btn {
  display: block;
  margin: 25px auto 50px auto;
  padding: 16px 40px;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e3c72;
  background: #fbbc04;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pay-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(251,188,4,0.5);
}

/* =========================
   AGREEMENT
========================= */
.agreement p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.agreement label {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-top: 12px;
}

.agreement input[type="checkbox"] {
  margin-bottom: 8px;
  transform: scale(1.3);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes rotateIn {
  0% { opacity: 0; transform: rotate(-200deg);}
  100% { opacity: 1; transform: rotate(0deg);}
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(251,188,4,0.4);}
  50% { box-shadow: 0 0 20px rgba(251,188,4,0.8);}
  100% { box-shadow: 0 0 10px rgba(251,188,4,0.4);}
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width: 768px){
  .course-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}