/* Application Form Styles - Using KWNYC Design System */

/* Progress Indicator */
.application-progress {
  margin-bottom: 3rem;
}

.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--theme-gray-color, #f5f5f5);
  z-index: 1;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
  background: var(--theme-primary-color, #17c788);
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-gray-color, #f5f5f5);
  color: var(--theme-ordinary-color, #74777b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-step.active .step-circle {
  background: var(--theme-primary-color, #17c788);
  color: var(--theme-white-color, #fff);
}

.progress-step.completed .step-circle {
  background: var(--theme-primary-color, #17c788);
  color: var(--theme-white-color, #fff);
}

.step-label {
  font-size: 0.9rem;
  color: var(--theme-ordinary-color, #74777b);
  text-align: center;
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
}

.progress-step.active .step-label {
  color: var(--theme-primary-color, #17c788);
  font-weight: 600;
}

/* Form Container */
.application-form-container {
  background: var(--theme-white-color, #fff);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-secondary-color, #0d1432);
  font-family: var(--theme-highlight-font, 'Comfortaa', cursive);
  margin-bottom: 0.5rem;
}

.form-section-subtitle {
  color: var(--theme-ordinary-color, #74777b);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group.required .form-label::after {
  content: ' *';
  color: #dc3545;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--theme-secondary-color, #0d1432);
  margin-bottom: 0.5rem;
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--theme-secondary-color, #0d1432);
  background-color: var(--theme-white-color, #fff);
  border: 2px solid var(--theme-gray-color, #f5f5f5);
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
}

.form-control:focus {
  outline: none;
  border-color: var(--theme-primary-color, #17c788);
  box-shadow: 0 0 0 0.2rem rgba(23, 199, 136, 0.25);
}

.form-control::placeholder {
  color: var(--theme-ordinary-color, #74777b);
}

/* Form Grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row.two-columns {
  grid-template-columns: 1fr 1fr;
}

.form-row.three-columns {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Section Headers */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-primary-color, #17c788), transparent);
  margin: 2.5rem 0;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--theme-secondary-color, #0d1432);
  font-family: var(--theme-highlight-font, 'Comfortaa', cursive);
  margin: 2rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--theme-gray-color, #f5f5f5);
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--theme-gray-color, #f5f5f5);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--theme-primary-color, #17c788);
  background: rgba(23, 199, 136, 0.05);
}

.file-upload-area.dragover {
  border-color: var(--theme-primary-color, #17c788);
  background: rgba(23, 199, 136, 0.1);
}

.file-upload-icon {
  font-size: 3rem;
  color: var(--theme-primary-color, #17c788);
  margin-bottom: 1rem;
}

.file-upload-text {
  font-size: 1.1rem;
  color: var(--theme-secondary-color, #0d1432);
  margin-bottom: 0.5rem;
}

.file-upload-hint {
  font-size: 0.9rem;
  color: var(--theme-ordinary-color, #74777b);
}

.file-input {
  display: none;
}

.file-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--theme-light-color, #f8f8f8);
  border-radius: 8px;
  display: none;
}

.file-preview.show {
  display: block;
}

.file-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-preview-icon {
  color: var(--theme-primary-color, #17c788);
  font-size: 1.5rem;
}

.file-preview-info {
  flex: 1;
}

.file-preview-name {
  font-weight: 600;
  color: var(--theme-secondary-color, #0d1432);
}

.file-preview-size {
  font-size: 0.9rem;
  color: var(--theme-ordinary-color, #74777b);
}

/* Buttons */
.btn-application {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--theme-primary-color, #17c788);
  color: var(--theme-white-color, #fff);
}

.btn-primary:hover {
  background: #15b377;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(23, 199, 136, 0.4);
  color: var(--theme-white-color, #fff);
  text-decoration: none;
}

.btn-secondary {
  background: var(--theme-ordinary-color, #74777b);
  color: var(--theme-white-color, #fff);
}

.btn-secondary:hover {
  background: #5a5d61;
  transform: translateY(-2px);
  color: var(--theme-white-color, #fff);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--theme-primary-color, #17c788);
  border: 2px solid var(--theme-primary-color, #17c788);
}

.btn-outline:hover {
  background: var(--theme-primary-color, #17c788);
  color: var(--theme-white-color, #fff);
  text-decoration: none;
}

.btn-success {
  background: #28a745;
  color: var(--theme-white-color, #fff);
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  color: var(--theme-white-color, #fff);
  text-decoration: none;
}

/* Button Groups */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--theme-gray-color, #f5f5f5);
}

.form-actions .btn-application {
  min-width: 120px;
}

/* Notices and Alerts */
.notice-box {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid;
}

.notice-warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
  color: #856404;
}

.notice-info {
  background: rgba(23, 199, 136, 0.1);
  border-left-color: var(--theme-primary-color, #17c788);
  color: var(--theme-secondary-color, #0d1432);
}

.notice-danger {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #721c24;
}

.notice-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--theme-highlight-font, 'Comfortaa', cursive);
}

.notice-text {
  margin: 0;
  line-height: 1.6;
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
}

/* Checkbox and Radio Styles */
.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.custom-checkbox,
.custom-radio {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.custom-checkbox input,
.custom-radio input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.checkmark,
.radiomark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--theme-white-color, #fff);
  border: 2px solid var(--theme-gray-color, #f5f5f5);
  transition: all 0.3s ease;
}

.checkmark {
  border-radius: 4px;
}

.radiomark {
  border-radius: 50%;
}

.custom-checkbox input:checked ~ .checkmark,
.custom-radio input:checked ~ .radiomark {
  background: var(--theme-primary-color, #17c788);
  border-color: var(--theme-primary-color, #17c788);
}

.checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radiomark::after {
  content: '';
  position: absolute;
  display: none;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.custom-checkbox input:checked ~ .checkmark::after,
.custom-radio input:checked ~ .radiomark::after {
  display: block;
}

.checkbox-label,
.radio-label {
  font-family: var(--theme-ordinary-font, 'Muli', sans-serif);
  color: var(--theme-secondary-color, #0d1432);
  cursor: pointer;
  line-height: 1.4;
}

/* Success Page */
.success-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.success-message {
  text-align: center;
  background: var(--theme-white-color, #fff);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.success-message h1 {
  color: var(--theme-primary-color, #17c788);
  font-family: var(--theme-highlight-font, 'Comfortaa', cursive);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--theme-ordinary-color, #74777b);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.success-message .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .application-form-container {
    padding: 2rem;
  }
  
  .form-row.two-columns,
  .form-row.three-columns {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-actions .btn-application {
    width: 100%;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 1rem;
  }
  
  .progress-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .application-form-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .form-section-title {
    font-size: 1.75rem;
  }
  
  .subsection-title {
    font-size: 1.25rem;
  }
  
  .file-upload-area {
    padding: 1.5rem;
  }
  
  .file-upload-icon {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .progress-steps {
    gap: 0.5rem;
  }
  
  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
  
  .form-section-title {
    font-size: 1.5rem;
  }
  
  .notice-box {
    padding: 1rem;
  }
}