/* ========================================
   APPLICATION FORM SECTION
   ======================================== */
.application-form {
  padding: 80px 0;
  background: var(--color-white);
  min-height: 100vh;
  margin-top: -45px;
}

.application-form .container {
  max-width: 1080px;
}

.application-form__header {
  text-align: center;
  margin-bottom: 60px;
}

.application-form__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 20px;
  background: #FFFFFF;
  border: 0.5px solid #DBA174;
  border-radius: 28px;
  font-family: var(--font-medium);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  margin-bottom: 20px;
  position: relative;
}

.application-form__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #DBA174;
  box-shadow: 0px 2px 14.5px 2px #DBA174;
  border-radius: 50%;
}

.application-form__title {
  font-family: var(--font-bold);
  font-weight: 700;
  color: var(--color-black);
  font-size: 43px;
  letter-spacing: 0;
  line-height: 52px;
  margin-bottom: 15px;
}

.application-form__subtitle {
  font-family: var(--font-regular);
  font-weight: 500;
  color: var(--color-text);
  font-size: 18px;
  letter-spacing: 0;
  line-height: 23px;
}

.application-form__card {
  background-color: var(--color-bg-light);
  border-radius: 30px;
  padding: 50px 70px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

/* Form Steps */
.form-step {
  margin-bottom: 50px;
}

.form-step:last-child {
  margin-bottom: 0;
}

.form-step__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.form-step__number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-step__title {
  font-family: var(--font-semibold);
  font-weight: 600;
  color: var(--color-black);
  font-size: 27px;
  letter-spacing: 0;
  line-height: 30px;
  margin: 0;
}

.form-step__body {
  padding-left: 0;
}

/* Form Elements */
.form-label {
  font-family: var(--font-medium);
  font-weight: 500;
  color: var(--color-black);
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
  margin-bottom: 10px;
}

.form-label .text-muted {
  color: #888;
  font-weight: 400;
}

.form-control,
.form-select {
  font-family: var(--font-regular);
  font-weight: 400;
  color: var(--color-black);
  font-size: 16px;
  padding: 12px 18px;
  border: 1px solid #DBA174;
  border-radius: 12px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(219, 161, 116, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #aaa;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='25' height='14' viewBox='0 0 25 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.530676 0.530676C0.870569 0.190884 1.3315 0 1.81211 0C2.29272 0 2.75366 0.190884 3.09355 0.530676L12.0654 9.50255L21.0373 0.530676C21.3791 0.200514 21.837 0.0178236 22.3122 0.0219533C22.7874 0.0260829 23.242 0.216702 23.5781 0.552754C23.9142 0.888806 24.1048 1.3434 24.1089 1.81864C24.113 2.29387 23.9303 2.75171 23.6002 3.09355L13.3469 13.3469C13.007 13.6867 12.546 13.8775 12.0654 13.8775C11.5848 13.8775 11.1239 13.6867 10.784 13.3469L0.530676 3.09355C0.190884 2.75366 0 2.29272 0 1.81211C0 1.3315 0.190884 0.87057 0.530676 0.530676Z' fill='%23DBA174'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px 9px;
  padding-right: 40px;
  cursor: pointer;
}

/* Radio Buttons */
.form-check-group {
  display: flex;
  gap: 30px;
  padding-top: 12px;
}

.form-check-inline {
  display: flex;
  align-items: center;
  margin: 0;
}

.form-check-input {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(219, 161, 116, 0.1);
  outline: none;
}

.form-check-label {
  font-family: var(--font-regular);
  font-weight: 400;
  color: var(--color-black);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

/* File Upload Section */
.file-upload-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.file-upload {
  border: 2px dashed #ddd;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.5);
}

.file-upload:hover {
  border-color: var(--color-primary);
  background-color: rgba(219, 161, 116, 0.03);
}

.file-upload__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(219, 161, 116, 0.1);
  border-radius: 50%;
}

.file-upload__icon svg {
  width: 40px;
  height: 40px;
}

.file-upload__text {
  font-family: var(--font-medium);
  font-weight: 500;
  color: var(--color-black);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 23px;
  margin-bottom: 8px;
}

.file-upload__format {
  font-family: var(--font-regular);
  font-weight: 400;
  color: #888;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
  margin: 0;
}

/* Warning and Info Messages */
.file-upload-section .form-label {
  font-family: var(--font-semibold);
  font-weight: 600;
  color: var(--color-black);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 24px;
  margin-bottom: 8px;
}

.file-upload-section .text-success {
  font-family: var(--font-regular);
  font-weight: 400;
  color: #28a745;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 20px;
  margin-bottom: 16px;
}

.warning-text {
  font-family: var(--font-medium);
  font-weight: 500;
  color: #dc3545;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 22px;
  padding: 16px 20px;
  background-color: rgba(220, 53, 69, 0.08);
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  margin-top: 24px;
}

/* ========================================
   APPLICATION TYPE SELECTION SECTION
   ======================================== */
.application-type-selection {
  padding: 80px 0;
  background: var(--color-white);
  min-height: 100vh;
  margin-top: -45px;
}

.application-type-selection .container {
  max-width: 1200px;
}

.application-type-selection__header {
  text-align: center;
  margin-bottom: 60px;
}

.application-type-selection__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 20px;
  background: #FFFFFF;
  border: 0.5px solid #DBA174;
  border-radius: 28px;
  font-family: var(--font-medium);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  margin-bottom: 20px;
  position: relative;
}

.application-type-selection__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #DBA174;
  box-shadow: 0px 2px 14.5px 2px #DBA174;
  border-radius: 50%;
}

.application-type-selection__title {
  font-family: var(--font-bold);
  font-weight: 700;
  color: var(--color-black);
  font-size: 43px;
  letter-spacing: 0;
  line-height: 52px;
  margin-bottom: 15px;
}

.application-type-selection__subtitle {
  font-family: var(--font-regular);
  font-weight: 500;
  color: var(--color-text);
  font-size: 18px;
  letter-spacing: 0;
  line-height: 23px;
}

/* Application Types Grid */
.application-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .application-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .application-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Application Type Card */
.application-type-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light);
  border-radius: 24px;
  padding: 40px 30px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.06);
}

.application-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(219, 161, 116, 0.03) 0%, rgba(219, 161, 116, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.application-type-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0px 12px 40px rgba(219, 161, 116, 0.25);
}

.application-type-card:hover::before {
  opacity: 1;
}

.application-type-card__icon-wrapper {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.application-type-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.application-type-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: inherit;
  opacity: 0.1;
  transition: all 0.4s ease;
}

.application-type-card:hover .application-type-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.application-type-card:hover .application-type-card__icon::before {
  opacity: 0.2;
  transform: scale(1.3);
}

/* Icon Color Variants */
.application-type-card__icon--bakalavr {
  background: linear-gradient(135deg, #DBA174 0%, #C88A5E 100%);
  color: #FFFFFF;
}

.application-type-card__icon--magistratura {
  background: linear-gradient(135deg, #6B9BD1 0%, #4A7AB8 100%);
  color: #FFFFFF;
}

.application-type-card__icon--transfer {
  background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
  color: #FFFFFF;
}

.application-type-card__icon--second {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: #FFFFFF;
}

.application-type-card__content {
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.application-type-card__title {
  font-family: var(--font-semibold);
  font-weight: 600;
  color: var(--color-black);
  font-size: 24px;
  letter-spacing: 0;
  line-height: 30px;
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

.application-type-card:hover .application-type-card__title {
  color: var(--color-primary);
}

.application-type-card__description {
  font-family: var(--font-regular);
  font-weight: 400;
  color: var(--color-text);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 22px;
  margin: 0;
  opacity: 0.85;
}

.application-type-card__arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--color-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.application-type-card:hover .application-type-card__arrow {
  transform: translateX(8px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .application-type-selection__title {
    font-size: 36px;
    line-height: 44px;
  }
  
  .application-type-card {
    padding: 35px 25px;
  }
}

@media (max-width: 768px) {
  .application-type-selection {
    padding: 60px 0;
  }
  
  .application-type-selection__header {
    margin-bottom: 40px;
  }
  
  .application-type-selection__title {
    font-size: 32px;
    line-height: 40px;
  }
  
  .application-type-selection__subtitle {
    font-size: 16px;
    line-height: 21px;
  }
  
  .application-type-card {
    padding: 30px 25px;
  }
  
  .application-type-card__icon {
    width: 70px;
    height: 70px;
  }
  
  .application-type-card__icon svg {
    width: 40px;
    height: 40px;
  }
  
  .application-type-card__title {
    font-size: 22px;
    line-height: 28px;
  }
  
  .application-type-card__description {
    font-size: 15px;
    line-height: 20px;
  }
}

@media (max-width: 576px) {
  .application-type-selection__badge {
    font-size: 16px;
    height: 36px;
    padding: 0 16px;
  }
  
  .application-type-selection__title {
    font-size: 28px;
    line-height: 36px;
  }
}
