/* --- COLORS & BASE --- */
:root {
  --primary: #ae00ff;
  --secondary: #ffdd1b;
  --dark: #333;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --pinky: #ff009d;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding-top: 100px; /* Offset for fixed header */
  overflow-x: hidden;

}



.section-title::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, rgba(174, 0, 255, 0.2), transparent);
}

/* Header styling */
.header {
  background: #fff;
  border-bottom: 2px solid #ddd;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

/* Container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: fit-content;
  padding: 10px 30px; 
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
} 

/* Logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
  animation: logoFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: opacity, transform;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Navigation Links & Icons */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none; /* Mobile Hidden */
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 70px;
  right: 0;
  width: 220px;
  border-left: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

nav ul.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  display: flex;           /* Added for icon alignment */
  align-items: center;     /* Centers icon and text vertically */
  gap: 12px;               /* Precise spacing between icon and text */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Icon Styling */
nav ul li a i {
  font-size: 18px;
  width: 20px;            /* Fixed width so text aligns perfectly */
  text-align: center;
  color: #ae00ff;         /* Brand color for icons */
  transition: transform 0.3s ease;
}

/* Hover Effects */
nav ul li a:hover {
  color: #000;
  background-color: rgba(174, 0, 255, 0.05);
}

nav ul li a:hover i {
  transform: scale(1.2);  /* Subtle icon pop on hover */
}

/* Hamburger Styles */
.hamburger {
  display: block;
  background: #f700ff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 4px;
}

/* Desktop View: Horizontal Navigation */
@media (min-width: 1400px) {
  .hamburger { display: none; }

  nav ul {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    border: none;
    opacity: 1;
    transform: none;
  }

  nav ul li a {
    padding: 10px 15px;
  }

  /* Underline effect for desktop */
  nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: #ae00ff;
    transition: width 0.3s ease;
  }

  nav ul li a:hover::after {
    width: calc(100% - 30px);
  }
}



/* --- HERO SECTION --- */
.apply-hero {
    background-color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.apply-hero h1 { font-size: 2.5rem; margin-bottom: 5px; }
.subtitle { color: #ae00ff; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }

/* --- MODERN FORM STYLING --- */
.apply-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.form-header { margin-bottom: 40px; }
.form-header h2 { font-size: 2rem; color: #1a1a1a; margin-bottom: 8px; }
.form-header p { color: #666; font-size: 1rem; }

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Input Blocks */
.input-block { margin-bottom: 25px; }
.input-block label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ae00ff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-block input, 
.input-block textarea, 
.input-block select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fcfcfc;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-block input:focus, 
.input-block textarea:focus {
    border-color: #ae00ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(174, 0, 255, 0.1);
    outline: none;
}

/* Custom Upload Zone */
.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-zone:hover { border-color: #ae00ff; background: rgba(174, 0, 255, 0.02); }

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: #ae00ff;
}

/* Premium Button */
.premium-btn {
    width: 100%;
    background: #ae00ff;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-btn:hover {
    background: #8e00d1;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(142, 0, 209, 0.3);
}

#formMessage {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    display: none; /* Hidden by default */
}

#formMessage:not(:empty) {
    display: block; /* Becomes visible when it has content */
}

#fileNameDisplay strong {
    color: var(--primary);
    font-weight: 600;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .apply-card { padding: 30px 20px; }
}

/* --- FOOTER --- */
.footer { background: var(--primary); color: white; padding: 40px 20px; text-align: center; }
.social-links { margin-bottom: 20px; }
.social-links a { 
  color: white; font-size: 1.5rem; margin: 0 15px; 
  transition: 0.3s; text-decoration: none;
}
.social-links a:hover { color: var(--secondary); transform: scale(1.2); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .contact-container { grid-template-columns: 1fr; }
  .input-row { grid-template-columns: 1fr; }
}

/* --- Submission Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Spinner for processing state */
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state */
.success-icon {
    font-size: 50px;
    color: green;
    line-height: 1;
    margin-bottom: 15px;
}

#closeModalBtn {
    width: auto;
    padding: 12px 30px;
    background: #4CAF50; /* A green color for success */
}

#closeModalBtn:hover {
    background: #45a049;
}