/* =========================
   application-portal.css
   Clean + Blue Accent Theme
   ========================= */


/* =========================
   SECTION TITLE
   ========================= */
.ap-h, .section-title {
  margin: 15px 0 14px;
  font-size: 18px;
  color: #0d3b7a;
  font-weight: 700;
}


/* =========================
   GRID SYSTEM
   ========================= */

/* Generic grid container */


.ap-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
column-gap: 30px;    /* space between left and right columns */
    row-gap: 20px;       /* vertical spacing between rows */
}


.ap-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}


/* Generic row – now consistent */
.ap-row {
  display: grid;
  gap: 20px;
  margin-bottom: 25px;
}

/* 3 Columns */
.ap-row-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 2 Columns */
.ap-row-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Compact horizontal row */
.ap-row.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}


/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */
@media (max-width: 900px) {
  .ap-row-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ap-grid-2 {
    grid-template-columns: 1fr;
  }
  .ap-row-cols-2 {
    grid-template-columns: 1fr;
  }
  .ap-row {
    margin-bottom: 20px;
  }
  .inline-options {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}


/* =========================
   FORM FIELDS
   ========================= */
.ap-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
}

.ap-field label {
  font-size: 13px;
  font-weight: 600;
  color: #263544;
  margin: 15px 15px 0px 15px; /* top | right | bottom | left */
}

.inline-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    align-items: start;
}


/* Inputs + Selects */
.ap-field input[type="text"],
.ap-field input[type="email"],
.ap-field input[type="file"],
.ap-field select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d6dce6;
  background: #fbfdff;
  box-sizing: border-box;
  transition: box-shadow .12s ease, border-color .12s ease;
  height: 34px;
}

/* File input height */
.ap-field input[type="file"] {
  height: auto;
  padding: 8px;
}

/* Focus effect */
.ap-field input:focus,
.ap-field select:focus {
  border-color: #1a55cc;
  box-shadow: 0 0 0 6px rgba(26,85,204,0.06);
  outline: none;
}

/* Subnote (below dropdown) */
.ap-subnote {
  margin-top: 6px;
  font-size: 13px;
  color: #5a6b77;
  font-weight: 500;
}


/* =========================
   RADIO BUTTONS
   ========================= */
.ap-radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 5px;
}

.ap-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.ap-radio input[type="radio"] {
  accent-color: #0A57D8;
  width: 16px;
  height: 16px;
}


/* =========================
   CHECKBOX
   ========================= */
.ap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}


/* =========================
   SUBMIT BUTTON
   ========================= */
.ap-submit {
  background: linear-gradient(180deg, #1461d6, #0f4cb0);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15,76,176,0.12);
  transition: transform .08s ease, box-shadow .12s ease;
}

.ap-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15,76,176,0.16);
}

#ap-message {
  margin-left: 12px;
  font-size: 14px;
  color: #0b2f6b;
}


/* =========================
   SELECT2 FIXES
   ========================= */
.select2-container {
  z-index: 1000 !important;
}

.select2-container .select2-selection--single {
  height: 40px;
  border-radius: 8px;
  padding: 3px 8px;
  width: 100%;
  border: 1px solid #d6dce6;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 24px;
  font-size: 13px;
  width: 100%;
}

.select2-container--open .select2-selection--single,
.select2-container .select2-selection--single:focus {
  border-color: #1a55cc;
  box-shadow: 0 0 0 6px rgba(26, 85, 204, 0.06);
}

.select2-container.error .select2-selection--single {
  border-color: #dc2626;
}

.select2-dropdown {
  z-index: 1000 !important;
}


.ap-subnote a {
  font-size: 12px;
  color: #f39200;
  font-weight: 600;
  text-decoration: none;
}

.ap-subnote a:hover {
  color: #d87f00;
  text-decoration: underline;
}
