/* Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Schools Swiper */
.schools-swiper .swiper-slide {
  height: auto;
  width: 550px !important;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .schools-swiper .swiper-slide {
    width: 75vw !important;
  }
}

/* Schools Swiper - Non-active slides */
.schools-swiper .swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.85);
  transform-origin: center;
  opacity: 0.7;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Schools Swiper - Active slide */
.schools-swiper .swiper-slide-active {
  transform: scale(1);
  transform-origin: center;
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Filter Button States */
.filter-btn.active {
  color: white !important;
}

.filter-btn:not(.active) {
  color: var(--color-gold-normal) !important;
}

/* Fade and Scale Animation */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.8s ease-out forwards;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Language Dropdown */
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 0.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lang-dropdown:hover .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.lang-dropdown-arrow {
  transition: transform 0.2s ease;
}

.lang-dropdown:hover .lang-dropdown-arrow {
  transform: rotate(180deg);
}

/* Hamburger to X Animation */
#mobile-menu-toggle {
  position: relative;
}

.hamburger-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  top: 25%;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.hamburger-line:nth-child(3) {
  top: 75%;
}

#mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
  margin-bottom: 0;
}

#mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) translateY(-50%) scale(0);
}

#mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  margin-bottom: 0;
}

/* Intl Tel Input - Custom Styling */
.iti {
  width: 100%;
}

.iti__tel-input {
  width: 100%;
  padding: 0;
  padding-bottom: 1rem;
  background: transparent;
  outline: none;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.4);
  color: black;
  transition: border-color 0.2s;
}

.iti__tel-input:focus {
  border-bottom-color: var(--color-gold-normal);
}

.iti__tel-input::placeholder {
  font-weight: 300;
  color: #9ca3af;
}

.iti__country-container {
  padding-bottom: 1rem;
}

.iti__selected-country {
  background: transparent !important;
  padding-left: 0;
}

.iti__arrow {
  border-top-color: #666;
}

@media (min-width: 768px) {
  .iti__tel-input {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .iti__tel-input {
    font-size: 1.375rem;
  }
}

/* Step Indicator Styles */
.step-indicator-step {
  position: relative;
  background: #e5e7eb;
  color: #4b5563;
  padding: 12px 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 100px;
  max-width: fit-content;
  flex-shrink: 0;
  white-space: nowrap;
}

.step-indicator-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 12px solid #e5e7eb;
  transition: border-left-color 0.3s ease;
  z-index: 2;
}

.step-indicator-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 12px solid transparent;
  z-index: 3;
}

.step-active {
  background: var(--color-gold-normal) !important;
  color: white !important;
  font-weight: 600;
}

.step-active:not(:last-child)::after {
  border-left-color: var(--color-gold-normal) !important;
}

.step-completed {
  background: var(--color-accent) !important;
  color: white !important;
}

.step-completed:not(:last-child)::after {
  border-left-color: var(--color-accent) !important;
}

.step-inactive {
  background: #e5e7eb;
  color: #4b5563;
}

.step-review-btn {
  background: #e5e7eb;
  color: #4b5563;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
}

.step-review-active {
  background: var(--color-gold-normal) !important;
  color: white !important;
  font-weight: 600;
}

.step-review-inactive {
  background: #e5e7eb;
  color: #4b5563;
}

.step-review-inactive:hover {
  background: #d1d5db;
  color: #374151;
}

@media (min-width: 1024px) {
  .step-indicator-step {
    padding: 12px 30px 12px 20px;
    border-radius: 0;
    min-width: 120px;
  }

  .step-indicator-step:first-child {
    padding-left: 20px;
    border-radius: 6px 0 0 6px;
  }

  .step-indicator-step:last-child {
    padding-right: 20px;
    border-radius: 0 6px 6px 0;
  }

  .step-indicator-step:last-child::after {
    display: none;
  }
}

/* Add Education Button */
.add-education-btn {
  background-color: transparent;
}

.add-education-btn:hover {
  background-color: color-mix(in srgb, var(--color-gold-normal) 50%, transparent) !important;
}

/* Select Dropdown Styling */
select[name="proficiency"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 top 50%;
  background-size: 12px;
  padding-right: 24px;
  cursor: pointer;
}

select[name="proficiency"]:focus {
  outline: none;
}

select[name="proficiency"] option {
  background-color: white;
  color: #1a1a1a;
  padding: 8px;
}

select[name="proficiency"] option:disabled {
  color: #9ca3af;
  font-weight: 300;
}

/* Skills Container */
.skills-container {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.75rem;
  min-height: 100px;
}

.skill-tag {
  display: inline-block;
  background: var(--color-gold-normal);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  margin: 0.25rem;
  font-size: 0.875rem;
}

.skill-tag .remove-skill {
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}

.skill-tag .remove-skill:hover {
  opacity: 0.7;
}

/* Success Alert for File Upload */
.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
}

.btn-remove-file:hover {
  background-color: var(--color-accent-dark);
}