/* FigmentGrant — shared styles for apply.php and (lightly) index.php. */

body {
  background: #eaf6fd;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 24px;
}
.bevel-panel {
  background: linear-gradient(135deg, #f0faff 80%, #c9e7fa 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(22,96,167,0.12), 0 1.5px 0 #bde2ff;
  padding: 36px 40px 28px 40px;
  border: 1.5px solid #d4e8fa;
  max-width: 720px;
  width: 100%;
  margin: 40px 0;
}
.bevel-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  color: #2176ae;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.subtitle {
  text-align: center;
  color: #155a93;
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.5;
}
.resume-banner {
  background: #ecfeff;
  border: 1.5px solid #67e8f9;
  color: #155e75;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 22px;
  text-align: center;
}
.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}
.bevel-panel label,
.section-label {
  font-weight: 500;
  color: #155a93;
  margin-bottom: 7px;
}
.bevel-panel input,
.bevel-panel textarea {
  padding: 9px 12px;
  border-radius: 6px;
  border: 1.5px solid #bde2ff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
}
.bevel-panel input:focus,
.bevel-panel textarea:focus {
  border-color: #38bdf8;
  background: #fafdff;
}
.bevel-panel textarea {
  min-height: 54px;
  resize: vertical;
}
.checkbox-group {
  background: #f5fbfe;
  border: 1.5px solid #c9e7fa;
  border-radius: 10px;
  padding: 14px 16px 8px 16px;
}
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #155a93;
  line-height: 1.4;
  font-weight: 500;
}
.checkbox-option input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.1);
}
.checkbox-option span {
  flex: 1;
}
.checkbox-option input[type="text"] {
  width: 100%;
}
.checkbox-note {
  font-size: 13px;
  color: #3c6d8f;
  margin-top: 2px;
}
.bevel-panel button {
  margin-top: 20px;
  padding: 12px 0;
  width: 100%;
  background: linear-gradient(to bottom, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(56,189,248,0.12);
  cursor: pointer;
  transition: background 0.2s;
}
.bevel-panel button:hover {
  background: linear-gradient(to bottom, #0ea5e9 0%, #38bdf8 100%);
}
.cost-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 0;
  background: #f5fbfe;
  border: 1.5px solid #c9e7fa;
  border-radius: 10px;
  margin-top: 22px;
  margin-bottom: 5px;
  padding: 16px 16px 10px 16px;
  box-shadow: 0 1px 6px rgba(33,118,174,0.08);
  font-size: 17px;
  width: 100%;
  box-sizing: border-box;
}
.cost-label {
  min-width: 230px;
  color: #155a93;
  font-weight: 500;
  font-size: 16px;
  padding-top: 2px;
  text-align: left;
  align-self: center;
}
.align-with-highlight { padding-left: 15px; }
.cost-value {
  text-align: right;
  justify-self: end;
  min-width: 90px;
  align-self: center;
  padding-right: 14px;
  color: #155a93;
}
.cost-section strong {
  color: #0ea5e9;
  font-size: 18px;
}
.figment-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(90deg, #e0f8ff 85%, #c3eeff 100%);
  border: 2px solid #3cbcff;
  border-radius: 7px;
  font-weight: 700;
  color: #2176ae;
  padding: 7px 14px 7px 15px;
  margin: 8px 0 8px 0;
  box-shadow: 0 1px 6px rgba(56,189,248,0.08);
}
.grant-label {
  color: #2176ae;
  font-weight: 700;
  font-size: 16px;
  padding-bottom: 0;
}
.grant-value {
  color: #0ea5e9;
  font-weight: 600;
  font-size: 18px;
  padding-left: 25px;
  padding-right: 0;
  white-space: nowrap;
}
.sub-label {
  color: #228fc1;
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: -3px;
  letter-spacing: 0.01em;
}
/* Honeypot: invisible to humans, visible to dumb bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5fbfe;
  border: 1.5px solid #c9e7fa;
  border-radius: 10px;
  padding: 12px 16px;
}
.captcha-q {
  font-weight: 600;
  color: #155a93;
  white-space: nowrap;
}
.captcha-row input { width: 80px; }

/* Segmented pill control (used for semester picker, etc.) — visually
   reuses the form's bevel-panel palette. Native radios are hidden but
   keyboard-focusable; the label is the clickable surface. */
.segment-group {
  display: flex;
  width: 100%;
  border: 1.5px solid #bde2ff;
  border-radius: 10px;
  overflow: hidden;
  background: #f5fbfe;
}
.segment-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segment-group label {
  flex: 1;
  cursor: pointer;
  padding: 12px 10px;
  text-align: center;
  border-right: 1.5px solid #bde2ff;
  color: #155a93;
  font-weight: 600;
  background: #f5fbfe;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0;
  line-height: 1.2;
}
.segment-group label:last-of-type { border-right: none; }
.segment-group label:hover { background: #e0f2fb; }
.segment-group input[type="radio"]:focus + label {
  outline: 2px solid #0ea5e9;
  outline-offset: -2px;
}
.segment-group input[type="radio"]:checked + label {
  background: linear-gradient(to bottom, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
}
.segment-group .seg-title {
  display: block;
  font-size: 15px;
  letter-spacing: .01em;
}
.segment-group .seg-hint {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 2px;
}
.segment-group input[type="radio"]:checked + label .seg-hint { opacity: 0.9; }

@media (max-width: 500px) {
  .segment-group { flex-direction: column; }
  .segment-group label {
    border-right: none;
    border-bottom: 1.5px solid #bde2ff;
  }
  .segment-group label:last-of-type { border-bottom: none; }
}

@media (max-width: 600px) {
  body { padding: 12px; }
  .bevel-panel { padding: 24px 18px 22px 18px; }
  .cost-section { grid-template-columns: 1fr; gap: 0; }
  .cost-label, .cost-value, .align-with-highlight {
    min-width: 0;
    width: 100%;
    text-align: left !important;
    justify-self: start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .figment-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px 10px 10px;
  }
  .grant-value { padding-left: 0; margin-top: 6px; }
}
