.register {
  display: flex;
  justify-content: center;
  background-color: #f3f8fc;
  font-family: "Inter", sans-serif !important;
  min-height: 100vh;
}

.register .container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 94px; */
  background: #f4f7f9;
  min-height: 100vh;
}

.card {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  width: 900px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 94px;
}

.register .title {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  color: #334155;
}

.register .subtitle {
  text-align: center;
  font-size: 14px;
  color: #4b5563;
  font-weight: 300;
}

.register .step {
  color: #10a3c5;
  font-weight: 600;
  align-self: flex-end;
  font-size: 18px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* FULL WIDTH FIELD */
.field.full {
  grid-column: span 2;
}

/* FIELD */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 16px;
  color: #334155;
}

.field span {
  color: red;
}

.field small {
  font-size: 12px;
  color: #6b7280;
}

/* INPUT */
input,
select:not(.select2-hidden-accessible) {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}

input::placeholder {
  color: #334155;
}

input:focus {
  border: 1px solid #0ea5b7 !important;
}

/* INPUT GROUP (VERIFY BUTTON) */
.input-group {
  display: flex;
}

.input-group input {
  flex: 1;
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.verify {
  background: none;
  border: 1px solid #cbd5e1;
  border-left: none;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #0ea5b7;
}

/* CTC GROUP */
.ctc-group {
  display: flex;
  gap: 10px;
}

.ctc-group select {
  flex: 1;
}

/* UPLOAD */
.upload label {
  color: #334155;
  font-size: 16px;
}

.upload label span {
  color: red;
}

.upload-box {
  border: 2px dashed #38bdf8;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  color: #64748b;
  margin-top: 8px;
}

.upload-box p {
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  width: 80%;
  max-width: 750px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #0ea5b7;
}

.modal-header h2 {
  font-size: 18px;
  color: #0ea5b7;
  margin: 0;
}

.close {
  font-size: 18px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px 8px;
}

/* Body */
.modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.modal-body h3 {
  /* margin-top: 10px; */
  font-size: 16px;
  color: #334155;
  margin-bottom: 8px;
}

.modal-body p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal-body ol {
  counter-reset: item;
  padding-left: 0;
  margin-top: 12px;
}

.modal-body ol li {
  list-style: none;
  counter-increment: item;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.modal-body ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #334155;
  font-weight: 500;
}

/* BUTTON */
.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.submit-btn {
  background: #0ea5b7;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.checkboxRow {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.checkboxRow label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.checkboxRow input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkboxRow a {
  color: #0e8fb0;
  text-decoration: none;
  font-weight: 500;
}

.checkboxRow a:hover {
  text-decoration: underline;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered
  li {
  list-style: none;
  color: #10a3c5;
}

.select2-container--default .select2-selection--single {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 10px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 6px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 34px !important;
}

.select2-container--default .select2-selection--multiple {
  min-height: 38px !important;
  border: 1px solid #cbd5e1 !important;
}

.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border: 1px solid #0ea5b7 !important;
}

.select2-container--default.select2-container--focus
  .select2-selection--single {
  border: 1px solid #0ea5b7 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
  line-height: 28px !important;
  font-size: 14px !important;
  border: none !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #334155 !important;
  font-size: 14px !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered
  li {
  list-style: none;
  color: #10a3c5;
  background-color: white;
  border: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  display: none !important;
}

@media (max-width: 600px) {
  /* GRID → SINGLE COLUMN */
  .register .grid {
    grid-template-columns: 1fr;
  }

  /* FULL WIDTH FIELD RESET (optional but safer) */
  .register .field.full {
    grid-column: span 1;
  }

  /* CARD WIDTH ADJUST */
  .register .card {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .register .input-group {
    display: flex;
    flex-direction: row; /* keep same row */
  }

  .register .input-group input {
    flex: 1;
    border-radius: 6px 0 0 6px;
    /* border: 1px solid #cbd5e1; */
    border-right: none;
  }

  .register .verify {
    width: auto; /* ❌ remove 24% */
    padding: 0 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 0; /* ❌ remove spacing */
  }

  /* CTC STACK */
  .register .ctc-group {
    flex-direction: column;
  }

  /* BUTTON FULL WIDTH */
  .register .actions {
    justify-content: center;
  }

  .register .submit-btn {
    width: 100%;
  }
  .select2-container {
    width: 100% !important;
  }
  .modal-content {
    width: 90%;
    margin: 50% auto;
  }
}
