/* Candidature Page Styles - Based on Survey Design */

/* Notification Toast (error/success/warning/info) */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 350px;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(35, 39, 47, 0.95) 0%, rgba(28, 32, 38, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
              0 0 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.notification-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
}

.notification-toast.notification-error::before {
  background: linear-gradient(180deg, #ff6b6b 0%, #ff4757 100%);
}

.notification-toast.notification-warning::before {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.notification-toast.notification-success::before {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.notification-toast.notification-info::before {
  background: linear-gradient(180deg, #4ed0f2 0%, #2b9ec6 100%);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
}

.notification-content i {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.notification-toast.notification-error .notification-content i {
  color: #ff6b6b;
  animation: errorShake 0.5s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-5deg); }
  75% { transform: translateX(5px) rotate(5deg); }
}

.notification-toast.notification-warning .notification-content i {
  color: #fbbf24;
  animation: warningPulse 1s ease infinite;
}

@keyframes warningPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.notification-toast.notification-success .notification-content i {
  color: #22c55e;
  animation: successCheck 0.6s ease;
}

@keyframes successCheck {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.notification-toast.notification-info .notification-content i {
  color: #4ed0f2;
  animation: infoRotate 2s linear infinite;
}

@keyframes infoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.notification-message {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  word-wrap: break-word;
}

.notification-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .notification-toast {
    min-width: 280px;
    max-width: calc(100vw - 40px);
    right: 10px;
    top: 10px;
    padding: 1rem 1.2rem;
  }

  .notification-content {
    gap: 0.8rem;
  }

  .notification-content i {
    font-size: 1.3rem;
  }

  .notification-message {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .notification-toast {
    min-width: 0;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

.candidature-main {
  min-height: 100vh;
  padding: 160px 0 80px 0;
  background: linear-gradient(135deg, #181a20 0%, #23272a 100%);
  position: relative;
  overflow: hidden;
}

/* Background decoration */
.candidature-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(212, 175, 55, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(78, 208, 242, 0.05) 0%,
      transparent 40%
    );
  pointer-events: none;
  animation: candidatureBgShift 20s ease-in-out infinite;
}

@keyframes candidatureBgShift {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.candidature-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Candidature Header */
.candidature-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.candidature-header-icon {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.candidature-header-icon i {
  font-size: 4rem;
  color: var(--viking-gold);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
  animation: iconFloat 3s ease-in-out infinite;
}

/* Helper specific color */
.helper-icon i {
  color: #22c55e;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
}

/* Builder specific color */
.builder-icon i {
  color: #f59e0b;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.5));
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  animation: glowPulse 2s ease-in-out infinite;
}

.helper-icon .icon-glow {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
}

.builder-icon .icon-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.3;
  }
}

.candidature-header-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ed0f2 0%, #ffffff 50%, #4ed0f2 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: titleGradientFlow 3s ease-in-out infinite;
}

@keyframes titleGradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.candidature-header-description {
  font-size: 1.2rem;
  color: #b8c5d6;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Requirements Section - Modern Card Design */
.requirements-section {
  margin: 3rem auto;
  max-width: 900px;
}

.requirements-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.requirements-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--viking-gold), transparent);
  border-radius: 2px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.requirement-card {
  background: linear-gradient(135deg, rgba(35, 39, 47, 0.6) 0%, rgba(28, 32, 38, 0.6) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(78, 208, 242, 0.2);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn 0.6s ease-out both;
}

.requirement-card:nth-child(1) { animation-delay: 0.1s; }
.requirement-card:nth-child(2) { animation-delay: 0.2s; }
.requirement-card:nth-child(3) { animation-delay: 0.3s; }
.requirement-card:nth-child(4) { animation-delay: 0.4s; }
.requirement-card:nth-child(5) { animation-delay: 0.5s; }
.requirement-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.requirement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.requirement-card:hover::before {
  opacity: 1;
}

.requirement-card:hover {
  transform: translateY(-5px);
  border-color: rgba(78, 208, 242, 0.4);
  box-shadow: 0 15px 40px rgba(78, 208, 242, 0.15),
              0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Helper specific card styling */
.helper-requirements .requirement-card {
  border-color: rgba(34, 197, 94, 0.2);
}

.helper-requirements .requirement-card::before {
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

.helper-requirements .requirement-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.15),
              0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Builder specific card styling */
.builder-requirements .requirement-card {
  border-color: rgba(245, 158, 11, 0.2);
}

.builder-requirements .requirement-card::before {
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.builder-requirements .requirement-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15),
              0 5px 20px rgba(0, 0, 0, 0.2);
}

.requirement-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.helper-requirements .requirement-icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.builder-requirements .requirement-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.requirement-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.requirement-card:hover .requirement-icon::after {
  animation: iconShine 0.6s ease;
}

@keyframes iconShine {
  0% {
    transform: rotate(45deg) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) translateY(100%);
    opacity: 0;
  }
}

.requirement-icon i {
  font-size: 1.5rem;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.requirement-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.requirement-content p {
  font-size: 0.95rem;
  color: #b8c5d6;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

.requirement-highlight {
  color: var(--primary);
  font-weight: 600;
}

.helper-requirements .requirement-highlight {
  color: #22c55e;
}

.builder-requirements .requirement-highlight {
  color: #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .requirements-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .requirement-card {
    padding: 1.5rem;
  }

  .requirements-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .requirement-card {
    padding: 1.2rem;
  }

  .requirement-icon {
    width: 40px;
    height: 40px;
  }

  .requirement-icon i {
    font-size: 1.2rem;
  }

  .requirement-content h4 {
    font-size: 1rem;
  }

  .requirement-content p {
    font-size: 0.9rem;
  }
}

/* Candidature Form */
.candidature-form {
  background: linear-gradient(135deg, rgba(35, 39, 47, 0.8) 0%, rgba(28, 32, 38, 0.8) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 100px rgba(78, 208, 242, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(78, 208, 242, 0.2);
  animation: formSlideIn 0.8s ease-out 0.2s both;
  position: relative;
  overflow: visible;
  margin-top: 30px;
  box-sizing: border-box;
}

.candidature-form * {
  box-sizing: border-box;
}

.candidature-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(78, 208, 242, 0.5) 50%, 
    transparent 100%);
  animation: formTopGlow 3s ease-in-out infinite;
  z-index: 1;
}

.helper-form::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(34, 197, 94, 0.5) 50%, 
    transparent 100%);
}

.builder-form::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.5) 50%, 
    transparent 100%);
}

@keyframes formTopGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scaleX(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form Badge */
.form-badge {
  position: absolute;
  top: -20px;
  right: 30px;
  background: linear-gradient(135deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4),
              0 -2px 10px rgba(212, 175, 55, 0.2);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 100;
  transform-origin: center;
}

.helper-badge {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4),
              0 -2px 10px rgba(34, 197, 94, 0.2);
}

.builder-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4),
              0 -2px 10px rgba(245, 158, 11, 0.2);
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1) rotate(-2deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
}

.form-badge i {
  font-size: 1rem;
  animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Progress Bar */
.form-progress {
  margin-bottom: 2.5rem;
  position: relative;
  margin-top: 2rem;
  padding: 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.helper-progress .progress-fill {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.builder-progress .progress-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.progress-text {
  position: absolute;
  top: -25px;
  right: 0;
  font-size: 0.85rem;
  color: var(--viking-gold);
  font-weight: 600;
  margin: 0;
  padding: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out both;
  padding: 0;
  width: 100%;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }
.form-group:nth-child(6) { animation-delay: 0.5s; }
.form-group:nth-child(7) { animation-delay: 0.6s; }
.form-group:nth-child(8) { animation-delay: 0.7s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  padding: 0;
}

.form-label i {
  color: var(--primary);
  font-size: 1.2rem;
}

.required {
  color: #ff6b6b;
  font-weight: 900;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: linear-gradient(135deg, rgba(28, 32, 38, 0.9) 0%, rgba(35, 39, 47, 0.9) 100%);
  border: 2px solid rgba(78, 208, 242, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  color: #fff;
  font-family: "Nunito", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  box-sizing: border-box;
  display: block;
}

.form-select {
  cursor: pointer;
  appearance: none;
  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='%234ed0f2' d='M6 9L1 4h10z'/%3E%3C/svg%");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: rgba(78, 208, 242, 0.4);
  background: linear-gradient(135deg, rgba(28, 32, 38, 1) 0%, rgba(35, 39, 47, 1) 100%);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(28, 32, 38, 1) 0%, rgba(35, 39, 47, 1) 100%);
  box-shadow: 0 0 30px rgba(78, 208, 242, 0.3),
              inset 0 0 20px rgba(78, 208, 242, 0.05),
              0 5px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b7280;
  opacity: 0.8;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  max-height: 400px;
  line-height: 1.6;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  opacity: 0.8;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Radio and Checkbox Groups */
.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.form-radio-label,
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(78, 208, 242, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.form-radio-label:hover,
.form-checkbox-label:hover {
  background: rgba(78, 208, 242, 0.05);
  border-color: rgba(78, 208, 242, 0.3);
  transform: translateX(5px);
}

.form-radio-label input[type="radio"],
.form-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-radio-label span,
.form-checkbox-label span {
  color: #e2e8f0;
  font-size: 1rem;
  flex: 1;
}

/* Form Actions */
.form-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.submit-button {
  background: linear-gradient(135deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background-size: 200% 200%;
  animation: buttonGradientShift 3s ease-in-out infinite;
}

.helper-submit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.builder-submit {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes buttonGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.helper-submit:hover {
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.builder-submit:hover {
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-loader {
  margin-left: 0.5rem;
}

/* Success Message */
.candidature-success {
  background: rgba(35, 39, 47, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: successBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    transform: scale(1.05) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.success-icon {
  font-size: 5rem;
  color: #22c55e;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.5));
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.candidature-success h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.candidature-success p {
  font-size: 1.2rem;
  color: #b8c5d6;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.success-info {
  background: linear-gradient(135deg, rgba(78, 208, 242, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
  border: 1px solid rgba(78, 208, 242, 0.3);
  border-radius: 15px;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: successInfoGlow 2s ease-in-out infinite;
}

@keyframes successInfoGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(78, 208, 242, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(78, 208, 242, 0.3);
  }
}

.success-info i {
  font-size: 2rem;
  color: var(--primary);
  animation: infoFloat 1.5s ease-in-out infinite;
}

@keyframes infoFloat {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.success-info p {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.back-home-button {
  background: linear-gradient(135deg, #4ed0f2 0%, #2b9ec6 100%);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 208, 242, 0.3);
}

.back-home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 208, 242, 0.4);
}

/* Form Validation States */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ff6b6b;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-input.success,
.form-textarea.success,
.form-select.success {
  border-color: #22c55e;
}

/* Floating Particles */
.candidature-main::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(212, 175, 55, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(78, 208, 242, 0.3), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(212, 175, 55, 0.3), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(78, 208, 242, 0.3), transparent);
  background-size: 200% 200%;
  animation: particlesFloat 20s linear infinite;
  pointer-events: none;
}

@keyframes particlesFloat {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-100vh) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .candidature-main {
    padding: 140px 0 60px 0;
  }

  .candidature-header-title {
    font-size: 2.2rem;
  }

  .candidature-header-description {
    font-size: 1.1rem;
  }

  .requirements-banner {
    padding: 1.5rem;
  }

  .requirements-title {
    font-size: 1.2rem;
  }

  .candidature-form {
    padding: 2rem 1.5rem;
  }

  .form-label {
    font-size: 1rem;
  }

  .submit-button {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  .candidature-success h2 {
    font-size: 2rem;
  }

  .success-icon {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .candidature-main {
    padding: 120px 0 40px 0;
  }

  .candidature-header-title {
    font-size: 1.8rem;
  }

  .candidature-header-icon i {
    font-size: 3rem;
  }

  .candidature-form {
    padding: 1.5rem 1rem;
  }

  .form-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto 1.5rem;
    display: inline-flex;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .submit-button {
    width: 100%;
    justify-content: center;
  }

  .success-info {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .success-info i {
    font-size: 1.5rem;
  }

  .success-info p {
    font-size: 1rem;
  }

  .form-radio-group,
  .form-checkbox-group {
    gap: 0.6rem;
  }

  .form-radio-label,
  .form-checkbox-label {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

#cooldown-timer-box {
  margin-top: 20px;
  padding: 16px;
  background: #ffeaea;
  color: #c0392b;
  border: 1.5px solid #c0392b;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  animation: fadeInTimer 0.4s;
}
@keyframes fadeInTimer {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: none;}
}

/* Dropdown dark mode for all selects and options */
select, select.form-select {
  background: #23272a !important;
  color: #fff !important;
  border: 2px solid rgba(78, 208, 242, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: "Nunito", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}
select:focus, select.form-select:focus {
  border-color: var(--primary);
  background: #181a20 !important;
  color: #fff !important;
}
select option, select.form-select option {
  background: #23272a;
  color: #fff;
}