/* =========================================================
   REKHATAMA REQUEST PROPOSAL
   Customer-centric, professional and responsive
========================================================= */

:root {
  --rk-proposal-navy: #0b2859;
  --rk-proposal-navy-dark: #071d42;
  --rk-proposal-blue: #0878e8;
  --rk-proposal-blue-dark: #0564ca;
  --rk-proposal-cyan: #08a0e9;
  --rk-proposal-text: #435a78;
  --rk-proposal-muted: #71839a;
  --rk-proposal-soft: #f4f8fd;
  --rk-proposal-sky: #eaf4ff;
  --rk-proposal-border: #d5e2f1;
  --rk-proposal-white: #ffffff;
  --rk-proposal-danger: #cf334b;
  --rk-proposal-shadow: 0 18px 45px rgba(9, 39, 84, 0.09);
}

/* Layout Builder reset */
.node--type-rekhatama-landing-page
.layout__region--content
> .block-layout-builder {
  margin: 0;
  padding: 0;
}

.node--type-rekhatama-landing-page .rk-proposal-hero *,
.node--type-rekhatama-landing-page .rk-proposal-info *,
.node--type-rekhatama-landing-page
.webform-submission-request-proposal-form * {
  box-sizing: border-box;
}

/* =========================================================
   HERO
========================================================= */

.rk-proposal-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfe0f3;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(8, 120, 232, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
}

.rk-proposal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  min-height: 520px;
  padding:
    clamp(48px, 5vw, 68px)
    clamp(25px, 4vw, 52px);
}

.rk-proposal-hero__content {
  min-width: 0;
}

.rk-proposal-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 17px;
  padding: 8px 14px;
  color: #075fbf;
  background: #e7f3ff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rk-proposal-hero h1 {
  max-width: 760px;
  margin: 0 0 19px;
  color: var(--rk-proposal-navy);
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.rk-proposal-hero__content > p {
  max-width: 720px;
  margin: 0 0 27px;
  color: var(--rk-proposal-text);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
}

.rk-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rk-proposal-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.rk-proposal-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.rk-proposal-btn--primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--rk-proposal-blue),
    var(--rk-proposal-cyan)
  );
  box-shadow: 0 12px 25px rgba(8, 120, 232, 0.22);
}

.rk-proposal-btn--primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #0566cf, #078fd4);
}

.rk-proposal-btn--secondary {
  color: var(--rk-proposal-navy);
  background: #fff;
  border-color: var(--rk-proposal-border);
}

.rk-proposal-btn--secondary:hover {
  color: var(--rk-proposal-blue);
  border-color: #91c5f5;
}

.rk-proposal-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 24px;
  color: #355575;
  font-size: 13px;
  font-weight: 600;
}

/* Hero solution panel */
.rk-proposal-hero__panel {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(34, 161, 239, 0.4),
      transparent 42%
    ),
    linear-gradient(145deg, #09234e, #0c3977);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  box-shadow: 0 22px 45px rgba(5, 28, 65, 0.18);
}

.rk-proposal-solution {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.rk-proposal-solution__icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  color: #bfe3ff;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.rk-proposal-solution strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: 15px;
}

.rk-proposal-solution p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.55;
}

/* =========================================================
   MAIN TWO-COLUMN AREA
========================================================= */

.node--type-rekhatama-landing-page
.layout--twocol-section--50-50 {
  display: grid !important;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: start;
  width: 100%;
  padding:
    48px
    clamp(25px, 4vw, 52px)
    64px;
  background: var(--rk-proposal-soft);
}

.node--type-rekhatama-landing-page
.layout--twocol-section--50-50
> .layout__region {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}

/* =========================================================
   LEFT INFORMATION
========================================================= */

.rk-proposal-info {
  position: sticky;
  top: 24px;
  padding: 30px !important;
  color: var(--rk-proposal-navy);
  background: #fff;
  border: 1px solid var(--rk-proposal-border);
  border-radius: 22px;
  box-shadow: var(--rk-proposal-shadow);
}

.rk-proposal-info h2 {
  margin: 0 0 13px;
  color: var(--rk-proposal-navy);
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.rk-proposal-info__intro {
  margin: 0 0 25px;
  color: var(--rk-proposal-text);
  font-size: 14px;
  line-height: 1.7;
}

.rk-proposal-steps {
  display: grid;
  gap: 10px;
}

.rk-proposal-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border: 1px solid #e0e9f4;
  border-radius: 15px;
  background: #f8fbff;
}

.rk-proposal-step > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  color: var(--rk-proposal-blue);
  background: #e5f2ff;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 900;
}

.rk-proposal-step h3 {
  margin: 0 0 4px;
  color: var(--rk-proposal-navy);
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: 14px;
}

.rk-proposal-step p {
  margin: 0;
  color: #5b718d;
  font-size: 12px;
  line-height: 1.55;
}

.rk-proposal-help {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 19px;
  color: #fff;
  background: linear-gradient(135deg, #0b2b5d, #0c4b91);
  border-radius: 16px;
}

.rk-proposal-help span {
  color: #bfe0ff;
  font-size: 11px;
  font-weight: 700;
}

.rk-proposal-help strong {
  color: #fff;
  font-size: 14px;
}

.rk-proposal-help a {
  width: fit-content;
  margin-top: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.rk-proposal-help a:hover {
  color: #d8edff;
  text-decoration: none;
}

.rk-proposal-privacy {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--rk-proposal-muted);
  font-size: 11px;
  line-height: 1.55;
  background:
    radial-gradient(circle, #6c829d 2px, transparent 3px)
    left 5px / 13px 13px no-repeat;
}

/* =========================================================
   WEBFORM PANEL
========================================================= */

.node--type-rekhatama-landing-page
.layout--twocol-section--50-50
.layout__region--second {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--rk-proposal-border);
  border-radius: 22px;
  box-shadow: var(--rk-proposal-shadow);
}

.node--type-rekhatama-landing-page
.layout__region--second
.block-webform {
  width: 100%;
  margin: 0;
  padding: 0;
}

.webform-submission-request-proposal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0;
}

.webform-submission-request-proposal-form
> .form-item,
.webform-submission-request-proposal-form
> .form-wrapper {
  min-width: 0;
  margin: 0;
}

/* Full-width form elements */
.webform-submission-request-proposal-form
.rk-proposal-form-head,
.webform-submission-request-proposal-form
.form-item-jenis-layanan,
.webform-submission-request-proposal-form
.form-item-topik-program-yang-dibutuhkan,
.webform-submission-request-proposal-form
.form-item-estimasi-budget,
.webform-submission-request-proposal-form
.form-item-pesan-kebutuhan-khusus,
.webform-submission-request-proposal-form
.form-item-persetujuan,
.webform-submission-request-proposal-form
.form-actions,
.webform-submission-request-proposal-form
.webform-element-more {
  grid-column: 1 / -1;
}

/* Form heading */
.rk-proposal-form-head {
  padding-bottom: 23px;
  border-bottom: 1px solid #e1e9f3;
}

.rk-proposal-form-head .rk-proposal-eyebrow {
  margin-bottom: 12px;
}

.rk-proposal-form-head h2 {
  margin: 0 0 8px;
  color: var(--rk-proposal-navy);
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: clamp(27px, 2.7vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.rk-proposal-form-head p {
  max-width: 670px;
  margin: 0;
  color: var(--rk-proposal-text);
  font-size: 13px;
  line-height: 1.65;
}

/* Labels */
.webform-submission-request-proposal-form label,
.webform-submission-request-proposal-form
.fieldset-legend {
  display: block;
  margin-bottom: 7px;
  color: var(--rk-proposal-navy);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.webform-submission-request-proposal-form
.form-required::after {
  color: var(--rk-proposal-danger);
}

/* Text fields */
.webform-submission-request-proposal-form
.form-control,
.webform-submission-request-proposal-form
.form-select {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  color: #142d50;
  background-color: #fbfdff;
  border: 1px solid #cbd9e9;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.webform-submission-request-proposal-form
.form-control::placeholder {
  color: #8a9aaf;
  opacity: 1;
}

.webform-submission-request-proposal-form
.form-control:focus,
.webform-submission-request-proposal-form
.form-select:focus {
  color: #142d50;
  background-color: #fff;
  border-color: var(--rk-proposal-blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 120, 232, 0.11);
}

.webform-submission-request-proposal-form
textarea.form-control {
  min-height: 145px;
  resize: vertical;
}

/* =========================================================
   SERVICE CHECKBOX CARDS
========================================================= */

.webform-submission-request-proposal-form
.form-item-jenis-layanan {
  padding: 0;
  border: 0;
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.fieldset-wrapper {
  margin-top: 2px;
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check-label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 11px 13px 11px 43px;
  color: #304c6f;
  background: #f9fbfe;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check-label::before {
  position: absolute;
  top: 50%;
  left: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  color: transparent;
  background: #fff;
  border: 1px solid #b9c9da;
  border-radius: 6px;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check-input:checked
+ .form-check-label {
  color: #075fbf;
  background: #edf6ff;
  border-color: #83bff4;
  box-shadow: 0 5px 15px rgba(8, 120, 232, 0.08);
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check-input:checked
+ .form-check-label::before {
  color: #fff;
  background: var(--rk-proposal-blue);
  border-color: var(--rk-proposal-blue);
}

.webform-submission-request-proposal-form
.form-item-jenis-layanan
.form-check-input:focus-visible
+ .form-check-label {
  outline: 3px solid rgba(8, 120, 232, 0.2);
  outline-offset: 2px;
}

/* Consent */
.webform-submission-request-proposal-form
.form-item-persetujuan {
  padding: 16px;
  background: #f7faff;
  border: 1px solid #dbe6f2;
  border-radius: 12px;
}

.webform-submission-request-proposal-form
.form-item-persetujuan.form-check {
  min-height: 0;
  padding-left: 43px;
}

.webform-submission-request-proposal-form
.form-item-persetujuan
.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  margin-left: -27px;
}

.webform-submission-request-proposal-form
.form-item-persetujuan
.form-check-label {
  margin: 0;
  color: #526983;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 500;
}

/* Hide obsolete More element */
.webform-submission-request-proposal-form
.webform-element-more {
  display: none !important;
}

/* Submit */
.webform-submission-request-proposal-form
.form-actions {
  margin-top: 2px;
}

.webform-submission-request-proposal-form
.form-actions
.form-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 55px;
  margin: 0;
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--rk-proposal-blue),
    var(--rk-proposal-cyan)
  );
  border: 0;
  border-radius: 13px;
  box-shadow: 0 13px 26px rgba(8, 120, 232, 0.23);
  font-family: Poppins, var(--bs-body-font-family, sans-serif);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.webform-submission-request-proposal-form
.form-actions
.form-submit:hover {
  color: #fff;
  background: linear-gradient(135deg, #0565cc, #078dd2);
  box-shadow: 0 16px 31px rgba(8, 120, 232, 0.29);
  transform: translateY(-2px);
}

/* Validation */
.webform-submission-request-proposal-form
.form-control.error,
.webform-submission-request-proposal-form
.form-select.error {
  border-color: var(--rk-proposal-danger);
}

.webform-submission-request-proposal-form
.form-item--error-message {
  margin-top: 5px;
  color: var(--rk-proposal-danger);
  font-size: 11px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
  .rk-proposal-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rk-proposal-hero__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rk-proposal-solution {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .node--type-rekhatama-landing-page
  .layout--twocol-section--50-50 {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .rk-proposal-info {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .rk-proposal-hero__panel {
    grid-template-columns: 1fr;
  }

  .rk-proposal-solution {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .webform-submission-request-proposal-form {
    grid-template-columns: 1fr;
  }

  .webform-submission-request-proposal-form
  > .form-item,
  .webform-submission-request-proposal-form
  > .form-wrapper,
  .webform-submission-request-proposal-form
  .rk-proposal-form-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .rk-proposal-hero {
    border-radius: 0 0 23px 23px;
  }

  .rk-proposal-hero__inner {
    padding: 40px 18px;
  }

  .rk-proposal-hero h1 {
    font-size: 37px;
  }

  .rk-proposal-actions {
    flex-direction: column;
  }

  .rk-proposal-btn {
    width: 100%;
  }

  .rk-proposal-assurance {
    display: grid;
    gap: 8px;
  }

  .rk-proposal-hero__panel {
    padding: 12px;
    border-radius: 19px;
  }

  .node--type-rekhatama-landing-page
  .layout--twocol-section--50-50 {
    gap: 18px;
    padding:
      26px
      0
      42px;
  }

  .rk-proposal-info,
  .node--type-rekhatama-landing-page
  .layout--twocol-section--50-50
  .layout__region--second {
    padding: 22px 18px !important;
    border-radius: 18px;
  }

  .webform-submission-request-proposal-form {
    gap: 15px;
  }

  .webform-submission-request-proposal-form
  .form-item-jenis-layanan
  .form-checkboxes {
    grid-template-columns: 1fr;
  }

  .rk-proposal-form-head h2 {
    font-size: 28px;
  }
}