:root{
  --jd-text: #212529;
  --jd-muted: #6c757d;
  --jd-border: #DFE3E7;
  --jd-bg: #ffffff;
  --jd-blue: #0089CA;
  --jd-blue-600: #0072a8;
  --jd-error: #C62828;
  --radius-xxl: 28px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-focus: 0 0 0 3px rgba(0,137,202,.15);
}

.jd-form-shell{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
  max-width: 960px;
}

.jd-form-header{
  margin: 8px 0 24px;
}
.jd-form-header h2{
  font-family: "Gangsta", "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 12px;
  color: var(--jd-text);
  font-size: clamp(28px, 4.5vw, 40px);
}
.jd-form-intro{
  color: var(--jd-text);
  font-size: 16px;
  line-height: 1.6;
}
.jd-form-intro a{ color: var(--jd-blue); text-decoration: underline; }

.jd-section-title{
  margin: 28px 0 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--jd-text);
  /*border-top: 1px solid var(--jd-border);*/
  padding-top: 16px;
}

/* grid */
.jd-grid{
  display: grid;
  gap: 16px 20px;
}
@media (min-width: 768px){
  .jd-grid--2{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px){
  .jd-grid--3{ grid-template-columns: 1fr 1fr 1fr; }
}

/* field */
.jd-field{ display:flex; flex-direction: column; gap: 6px; }
.jd-label{
  font-weight: 600;
  color: var(--jd-text);
}
.jd-required{ color: var(--jd-error); margin-left: 2px; }

.jd-input, .jd-select, .jd-file, .jd-textarea{
  width: 100%;
  border: 1px solid var(--jd-border);
  background: var(--jd-bg);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font: inherit;
  color: var(--jd-text);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jd-input:focus, .jd-select:focus, .jd-textarea:focus, .jd-file:focus{
  outline: 0;
  border-color: var(--jd-blue);
  box-shadow: var(--shadow-focus);
}
.jd-help{ color: var(--jd-muted); font-size: 14px; }

.jd-radio-row{
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.jd-radio{
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

/* validation */
.field-validation-error,
.input-validation-error{
  color: var(--jd-error);
}
.input-validation-error{
  border-color: var(--jd-error) !important;
}

/* files */
.jd-files-note{
  color: var(--jd-muted);
  font-size: 14px;
}
.jd-add-file{
  display: inline-flex; align-items:center; justify-content:center;
  padding: 10px 16px;
  border-radius: var(--radius-xxl);
  border: 1px solid var(--jd-blue);
  color: var(--jd-blue);
  background: transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.jd-add-file:hover{ background: rgba(0,137,202,.08); }

/* buttons */
.jdbtn-primary{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  color: #fff;
  background: var(--jd-blue);
  border: none;
  border-radius: var(--radius-xxl);
  padding: 12px 22px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .2s ease, transform .02s ease;
}
.jdbtn-primary:hover{ background: var(--jd-blue-600); }
.jdbtn-primary:active{ transform: translateY(1px); }

.jdbtn-ghost{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: var(--radius-xxl);
  border: 1px solid var(--jd-border);
  padding: 12px 18px;
  color: var(--jd-text);
  background: #fff;
  text-decoration: none;
}
.jdbtn-ghost:hover{ border-color: #cbd3da; }

/* footer */
.jd-form-actions{
  display:flex; gap:12px; flex-wrap:wrap;
  justify-content:flex-end;
  margin-top: 20px;
}

/* small alignment helpers for long lines */
.jd-span-2{ grid-column: 1 / -1; }
/* ---- FORM CONTAINER ---- */
.jd-form-container {
  max-width: 1200px;            /* keeps the content centered */
  margin: 0 auto;               /* centers the form horizontally */
  padding: 40px 48px;           /* space around the form */
  box-sizing: border-box;       /* padding doesn’t add to width */
}

/* ---- RESPONSIVE PADDING ---- */
@media (max-width: 992px) {
  .jd-form-container {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .jd-form-container {
    padding: 24px 16px;
  }
}
/* ---- FORM ACTIONS CONTAINER ---- */
.jd-form-actions {
  display: flex;
  justify-content: center;   /* centers horizontally */
  margin-top: 32px;
}

/* ---- PRIMARY BUTTON ---- */
.jdbtn-primary {
  background-color: #0089CA;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 36px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.jdbtn-primary:hover {
  background-color: #0077b8;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .jd-form-actions {
    justify-content: center;
  }

  .jdbtn-primary {
    width: 100%;          /* takes full width of container */
    max-width: 100%;
    border-radius: 50px;  /* keeps soft rounded shape */
  }
}