/* Admission Page Styles */

.admission-hero {
  position: relative;
  padding: 80px 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1e4e 0%, #1a3a62 50%, #0d5a8f 100%);
  overflow: hidden;
}

.admission-hero .hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.admission-hero .animated-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(40px);
  opacity: 0.7;
  animation: float 8s infinite;
}

.admission-hero .blob-1 {
  width: 200px;
  height: 200px;
  background: #0099cc;
  top: 20%;
  left: 10%;
}

.admission-hero .blob-2 {
  width: 150px;
  height: 150px;
  background: #00a8cc;
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.admission-hero .blob-3 {
  width: 180px;
  height: 180px;
  background: #00d4ff;
  bottom: 10%;
  left: 50%;
  animation-delay: -4s;
}

.hero-content-admission {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title-admission {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title-admission .gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-admission {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Admission Section */
.admission-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f8ff 100%);
  min-height: calc(100vh - 400px);
}

.admission-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .admission-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-title-admission {
    font-size: 1.8rem;
  }

  .admission-left {
    position: static;
  }

  .course-selector-card {
    position: static;
    top: auto;
    padding: 1.5rem;
  }

  .selected-course-card {
    position: static;
    top: auto;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .course-card-image {
    max-height: 250px;
  }

  .enrollment-form-container {
    padding: 1.5rem;
  }

  .form-section {
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .enroll-submit-btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
}

/* Left: Course Details */
.admission-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Course Selector Card */
.course-selector-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  position: sticky;
  top: 100px;
  animation: slideInLeft 0.6s ease-out;
}

.course-selector-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a1e4e;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-selector-card h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #0099cc, #00a8cc);
  border-radius: 2px;
}

.course-select {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-select:focus {
  outline: none;
  background: white;
  border-color: #0099cc;
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.course-select:hover {
  border-color: #0099cc;
}

.select-course-btn {
  background: linear-gradient(135deg, #0099cc, #00a8cc);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.2);
}

.select-course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

.select-course-btn:active {
  transform: translateY(0);
}

/* Selected Course Card */
.selected-course-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  position: sticky;
  top: 100px;
}

.selected-course-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a1e4e;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-course-card h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #0099cc, #00a8cc);
  border-radius: 2px;
}

/* Course Details Card */
.course-details-admission {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-image-admission {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e8e8, #f0f0f0);
}

.course-image-admission img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-title-admission {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0a1e4e;
  line-height: 1.3;
}

.course-description-admission {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.course-meta-admission {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 153, 204, 0.05), rgba(0, 168, 204, 0.05));
  border-radius: 10px;
}

.meta-item-admission {
  text-align: center;
}

.meta-value-admission {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0099cc;
  display: block;
}

.meta-label-admission {
  font-size: 0.8rem;
  color: #666;
  display: block;
  margin-top: 0.25rem;
}

.course-details-list-admission {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 10px;
}

.course-details-list-admission h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a1e4e;
  margin-bottom: 0.75rem;
}

.course-details-list-admission ul {
  list-style: none;
  padding: 0;
}

.course-details-list-admission li {
  font-size: 0.85rem;
  color: #555;
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.course-details-list-admission li::before {
  content: '✓';
  color: #0099cc;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.loading-placeholder {
  padding: 2rem;
  text-align: center;
  color: #999;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Right: Enrollment Form */
.admission-right {
  animation: slideInRight 0.6s ease-out;
}

.enrollment-form-container {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

.enrollment-form-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a1e4e;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.enrollment-form-container h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: linear-gradient(135deg, #0099cc, #00a8cc);
  border-radius: 2px;
}

/* Form Styles */
.admission-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0;
}

.form-section legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a1e4e;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8e8e8;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a1e4e;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: white;
  border-color: #0099cc;
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

/* Checkbox Group */
.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
}

/* Submit Button */
.enroll-submit-btn {
  background: linear-gradient(135deg, #0099cc, #00a8cc);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 48px;
  min-width: 200px;
}

.enroll-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 153, 204, 0.4);
}

.enroll-submit-btn:active {
  transform: translateY(0);
}

.enroll-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* Success Modal */
.success-modal {
  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;
  animation: fadeIn 0.3s ease;
}

.modal-content-success {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  animation: scaleIn 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.success-icon {
  font-size: 4rem;
  color: #27ae60;
  margin-bottom: 1rem;
  animation: popIn 0.6s ease;
}

.modal-content-success h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a1e4e;
  margin-bottom: 1rem;
}

.modal-content-success p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.success-details {
  background: #f8f9ff;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
  font-size: 0.95rem;
  color: #555;
}

.success-details p {
  margin: 0.5rem 0;
}

.success-details strong {
  color: #0099cc;
}

.modal-btn {
  background: linear-gradient(135deg, #0099cc, #00a8cc);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

/* Error Modal */
.error-modal {
  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;
  animation: fadeIn 0.3s ease;
}

.modal-content-error {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  animation: scaleIn 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.error-icon {
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.modal-content-error h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a1e4e;
  margin-bottom: 1rem;
}

.modal-content-error p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .admission-section {
    padding: 1.5rem 1rem;
  }

  .admission-hero {
    min-height: 250px;
    padding: 2rem 1rem;
  }

  .hero-title-admission {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .enrollment-form-container {
    padding: 1.25rem;
  }

  .enrollment-form-container h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .course-selector-card {
    padding: 1rem;
  }

  .course-selector-card h3 {
    font-size: 1rem;
  }

  .course-select {
    padding: 0.75rem;
    font-size: 16px;
    min-height: 48px;
  }

  .select-course-btn {
    min-height: 48px;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.95rem;
  }

  .selected-course-card {
    padding: 1rem;
  }

  .course-card-image {
    max-height: 180px;
    height: 180px;
  }

  .course-title-admission {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .course-description-admission {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .course-meta-admission {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .meta-item {
    padding: 0.5rem;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
    padding: 0.65rem;
    min-height: 44px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .form-section {
    gap: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .modal-content-success,
  .modal-content-error {
    padding: 1.5rem;
    margin: 1rem 0.5rem;
    border-radius: 12px;
  }

  .modal-header-success,
  .modal-header-error {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .enrollment-details {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .enrollment-detail-item {
    padding: 0.5rem;
  }

  .detail-label {
    font-weight: 600;
    margin-right: 0.5rem;
  }

  .enroll-submit-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .agreement-checkbox-label {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .agreement-checkbox-label input {
    min-width: 20px;
    min-height: 20px;
  }

  .agreement-text {
    font-size: 0.85rem;
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

/* Tablet Landscape (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-title-admission {
    font-size: 1.8rem;
  }

  .course-selector-card {
    padding: 1.25rem;
  }

  .enrollment-form-container {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .course-meta-admission {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .enroll-submit-btn {
    min-height: 48px;
    width: 100%;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .admission-wrapper {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }

  .admission-left {
    position: sticky;
    top: 100px;
    height: fit-content;
  }

  .course-selector-card {
    position: static;
    top: auto;
    padding: 1.5rem;
  }

  .selected-course-card {
    position: static;
    top: auto;
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .hero-title-admission {
    font-size: 2rem;
  }

  .course-meta-admission {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
  .admission-wrapper {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }

  .admission-left {
    position: sticky;
    top: 120px;
    height: fit-content;
  }

  .course-selector-card {
    padding: 2rem;
  }

  .selected-course-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .hero-title-admission {
    font-size: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .course-meta-admission {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .enroll-submit-btn {
    min-height: 52px;
  }
}
