/* =========================================
   GLOBAL
========================================= */

body {
  background: #f5f7fa;
  color: #172b4d;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================================
   HEADER
========================================= */

.main-header {
  min-height: 90px;

  border: 1px solid #e4e8ee;
  border-radius: 12px;

  padding: 12px 24px;

  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.logo-placeholder {
  width: 62px;
  height: 62px;
}

.logo-placeholder img {
  object-fit: contain;
}

.brand-text h5 {
  font-weight: 800;
  color: #132f52;
}

.brand-text p {
  margin: 2px 0 0;

  font-size: 14px;
  color: #718096;
}

.menu-btn {
  width: 44px;
  height: 44px;

  border: 1px solid #dfe5ec;
  border-radius: 9px;

  color: #18385d;

  font-size: 22px;

  cursor: pointer;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.asy-application.application-wrapper {
  min-height: calc(100vh - 114px);
}

/* =========================================
   SIDEBAR
========================================= */

.asy-application .sidebar {
  width: 270px;
  background: #102f52;
  border-radius: 10px;
  padding: 24px 14px;
  height: fit-content;
}

.asy-application .sidebar-header {
  padding: 0 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.asy-application .sidebar-header h5 {
  font-size: 18px;
}

.asy-application .sidebar-header p {
  color: #aebed0;
  font-size: 13px;
}

/* =========================================
   STEP NAVIGATION
========================================= */

.asy-application .step-navigation {
  gap: 3px;
  background: transparent !important;
}

.asy-application .step-item {
  color: #d8e2ed !important;
  padding: 9px 8px;
  border-radius: 7px;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  background: transparent !important;
}

.asy-application .step-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.asy-application .step-item.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.asy-application .step-number {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  color: #ffffff !important;
  background: transparent !important;
}

.asy-application .step-item.active .step-number {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
  color: #ffffff !important;
}

/* =========================================
   HELP BOX
========================================= */

.asy-application .help-box {
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  gap: 10px;
}

.asy-application .help-icon {
  font-size: 25px;
  color: #dce9f7;
}

.asy-application .help-box strong {
  display: block;
  font-size: 14px;
}

.asy-application .help-box p {
  margin: 2px 0;
  color: #b7c6d6;
  font-size: 1rem;
}

.asy-application .help-box span {
  font-size: 1rem;
}

/* =========================================
   FORM AREA
========================================= */

.asy-application .form-area {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  padding: 28px 34px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.035);
}

.asy-application .form-step {
  display: none;
}

.asy-application .form-step.active {
  display: block;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h2 {
  color: #172b4d;
}

.form-heading p {
  margin: 5px 0 0;
  color: #7a8798;
  font-size: 15px;
}

.contact-heading {
  margin-top: 30px;
}

/* =========================================
   FORM CONTROLS
========================================= */

.form-label {
  color: #263b58;
  font-size: 15px;
}

.form-control {
  min-height: 46px;

  border: 1px solid #dce3eb;

  border-radius: 7px;

  color: #263b58;

  font-size: 15px;

  padding: 10px 13px;

  box-shadow: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #a8b2bf;
}

.form-control:focus {
  border-color: #1976d2;

  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Automatically calculated fields */

.calculated-field {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.calculated-field:focus {
  background-color: #e9ecef;
  color: #6c757d;
  border-color: #dce3eb;
  box-shadow: none;
}

/* =========================================
   EDUCATION & LANGUAGE TABLES
========================================= */

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.qualification-table,
.language-table {
  width: 100%;
  margin-bottom: 10px;
  vertical-align: middle;
}

.qualification-table th,
.language-table th {
  font-size: 15px;
}

.qualification-table td,
.language-table td {
  font-size: 15px;
}

.qualification-table .form-control {
  min-width: 130px;
}

.qualification-table th:first-child {
  min-width: 145px;
}

.language-table th:first-child {
  min-width: 160px;
}

/* =========================================
   LANGUAGE TABLE CHECKBOX ALIGNMENT
========================================= */

.language-table th:nth-child(2),
.language-table th:nth-child(3),
.language-table th:nth-child(4),
.language-table td:nth-child(2),
.language-table td:nth-child(3),
.language-table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  text-align: center;
  vertical-align: middle;
}

.language-table td:nth-child(2) input[type="checkbox"],
.language-table td:nth-child(3) input[type="checkbox"],
.language-table td:nth-child(4) input[type="checkbox"] {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto !important;
  padding: 0;
  cursor: pointer;
}

.language-table th:first-child,
.language-table td:first-child {
  width: auto;
}

.language-table th:last-child,
.language-table td:last-child {
  width: 100px;
  min-width: 100px;
}

/* Center Action column */
.qualification-table th:last-child,
.qualification-table td:last-child,
.language-table th:last-child,
.language-table td:last-child {
  text-align: center;
  vertical-align: middle;
}

/* Center delete buttons */
.delete-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0 auto;
}

.delete-row-btn i {
  margin-left: 0 !important;
}

.section-heading {
  margin-top: 30px;
}

.add-row-container {
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.add-row-btn {
  font-size: 13px;
  padding: 6px 12px;
}

/* =========================================
   RADIO BUTTONS
========================================= */

.gender-options {
  display: flex;

  align-items: center;

  gap: 25px;

  min-height: 46px;
}

.radio-option {
  display: flex;

  align-items: center;

  gap: 8px;

  cursor: pointer;

  color: #34445a;

  font-size: 15px;
}

.radio-option input {
  width: 16px;
  height: 16px;

  accent-color: #1976d2;

  cursor: pointer;
}

/* =========================================
   DATE ICON
========================================= */

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-control {
  padding-right: 42px;
}

.input-icon-wrapper i {
  position: absolute;

  right: 14px;

  top: 50%;

  transform: translateY(-50%);

  color: #8492a6;

  pointer-events: none;
}

/* =========================================
   VALIDATION
========================================= */

.validation-message {
  min-height: 0;

  margin-top: 5px;

  font-size: 11px;

  color: #dc3545;
}

.form-control.is-invalid {
  border-color: #dc3545;

  background-image: none;

  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.06);
}

.form-control.is-valid {
  border-color: #198754;

  background-image: none;

  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.06);
}

/* =========================================
   BUTTONS
========================================= */

.form-navigation {
  margin-top: 25px;
  gap: 10px;
}

.btn {
  min-height: 46px;

  border-radius: 7px;

  padding: 10px 24px;

  font-size: 14px;
}

.btn-primary {
  background: #1976d2;

  border-color: #1976d2;
}

.btn-primary:hover {
  background: #1565b7;

  border-color: #1565b7;
}

.btn i {
  margin-left: 9px;
}

/* =========================================
   COMING SOON
========================================= */

.coming-soon {
  padding: 40px;

  text-align: center;

  color: #8a96a6;

  background: #f8fafc;

  border-radius: 8px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) and (min-width: 768px) {
  .asy-application.application-wrapper {
    gap: 14px;
    margin: 0 12px 12px;
    width: auto;
    min-width: 0;
  }

  .asy-application .sidebar {
    width: 235px;
    min-width: 235px;
    max-width: 235px;
    flex: 0 0 235px;
    padding: 20px 10px;
  }

  .asy-application .form-area {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 24px 20px;
    overflow: hidden;
  }

  .asy-application .sidebar-header h5 {
    font-size: 15px;
  }

  .asy-application .sidebar-header p {
    font-size: 12px;
  }

  .asy-application .step-item {
    font-size: 11px;
    padding: 8px 6px;
  }

  .gender-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 18px;
    width: 100%;
    max-width: 100%;
  }

  .radio-option {
    max-width: 100%;
    min-width: 0;
  }

  .radio-option span {
    overflow-wrap: anywhere;
  }

  .asy-application .form-step {
    max-width: 100%;
    min-width: 0;
  }

  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {
  .main-header {
    margin: 10px;
    padding: 12px 15px;
    min-height: 68px;
  }

  .logo-placeholder {
    width: 50px;
    height: 50px;
  }

  .brand-text h5 {
    font-size: 15px;
  }

  .brand-text p {
    font-size: 10px;
  }

  .asy-application.application-wrapper {
    margin: 0 10px 10px;
  }

  .asy-application .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 14px 10px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: block;
  }

  .asy-application .sidebar-header {
    padding: 0 8px 10px;
    margin-bottom: 10px;
  }

  .asy-application .step-navigation {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 2px 4px 6px;
    overflow: visible !important;
    background: transparent !important;
  }

  .asy-application .step-item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
    background: transparent !important;
    color: #d8e2ed !important;
  }

  .asy-application .step-item > span:last-child {
    display: none !important;
  }

  .asy-application .step-number {
    width: 23px;
    height: 23px;
    min-width: 23px;
    font-size: 11px;
    color: #ffffff !important;
    background: transparent !important;
  }

  .asy-application .step-item.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
  }

  .asy-application .step-item.active .step-number {
    background: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
  }

  .asy-application .form-area {
    width: 100%;
    min-width: 0;
  }

  .asy-application .form-step {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .gender-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: 100%;
  }

  .radio-option {
    max-width: 100%;
  }

  .radio-option span {
    overflow-wrap: anywhere;
  }

  .form-control {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {
  .main-header {
    margin: 8px;
    padding: 10px 12px;
  }

  .logo-placeholder {
    width: 46px;
    height: 46px;
  }

  .brand-text h5 {
    font-size: 14px;
  }

  .brand-text p {
    font-size: 9px;
  }

  .asy-application.application-wrapper {
    margin: 0 8px 8px;
  }

  .asy-application .sidebar {
    padding: 11px 8px 8px;
    margin-bottom: 7px;
    border-radius: 7px;
  }

  .asy-application .sidebar-header {
    padding: 0 7px 8px;
    margin-bottom: 7px;
  }

  .asy-application .sidebar-header h5 {
    font-size: 15px;
  }

  .asy-application .sidebar-header p {
    font-size: 11px;
  }

  .asy-application .step-navigation {
    padding: 1px 2px 4px;
  }

  .asy-application .step-item {
    min-width: 42px;
    padding: 3px 5px;
  }

  .asy-application .step-number {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }

  .gender-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .radio-option {
    width: 100%;
  }

  .form-control {
    font-size: 14px;
  }
}

.experience-type-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 22px;
  width: 100%;
  max-width: 100%;
}

.experience-type-options .radio-option {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.experience-type-options .radio-option span {
  overflow-wrap: anywhere;
}

/* Tablet / laptop */
@media (max-width: 1100px) and (min-width: 768px) {
  .experience-type-options {
    gap: 10px 18px;
  }

  .experience-type-options .radio-option {
    flex: 0 1 auto;
  }
}

/* =========================================
   MOBILE LAYOUT FIX
========================================= */

@media (max-width: 767.98px) {
  .asy-application.application-wrapper {
    display: block !important;
    width: auto;
  }

  .asy-application .sidebar,
  .asy-application .form-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .asy-application .form-area {
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .asy-application .step-navigation {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow-x: visible;
    background: transparent !important;
  }

  .asy-application .step-item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* =========================================
   MOBILE HELP BOX
========================================= */

.asy-application .mobile-help-box {
  margin-top: 2rem;
  margin-bottom: 1rem;
  background: #102f52;
  color: #ffffff;
}

.asy-application .mobile-help-box p {
  color: #b7c6d6;
}
