.elementor-4091 .elementor-element.elementor-element-401d076{--display:flex;}/* Start custom CSS for container, class: .elementor-element-401d076 *//* =========================================================
   HKBO CF7 Application Form Styling
   Matches current HTML: .hkbo-application-form
   ========================================================= */

body:has(form.wpcf7-form) .site-content,
body:has(form.wpcf7-form) .entry-content,
body:has(form.wpcf7-form) .page-content {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Main form card */
.wpcf7 form,
form.wpcf7-form {
  max-width: 980px;
  margin: 40px auto 70px;
  padding: 42px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* General text */
.hkbo-application-form,
.hkbo-application-form p,
.hkbo-application-form span,
.hkbo-application-form label {
  color: #1f2933;
  font-size: 15px;
  line-height: 1.55;
}

/* Labels */
.hkbo-application-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

/* Main title */
.hkbo-application-form .hkbo-main-title {
  text-align: center;
  margin-bottom: 26px;
}

.hkbo-application-form h2 {
  text-align: center;
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.hkbo-application-form h2 + p {
  text-align: center;
  margin-bottom: 26px;
  color: #5f6b7a;
}

/* Section titles */
.hkbo-application-form .hkbo-section-title {
  margin-top: 28px;
  margin-bottom: 18px;
}

.hkbo-application-form h3 {
  position: relative;
  margin: 0;
  padding: 16px 20px;
  background: #f6f8fb;
  border-left: 5px solid #b21f2d;
  border-radius: 12px;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

/* Info/legal/helper boxes */
.hkbo-application-form .hkbo-info-box,
.hkbo-application-form .hkbo-legal-text,
.hkbo-application-form .hkbo-help-text,
.hkbo-application-form .hkbo-deadline {
  padding: 18px 20px;
  background: #fbfcfe;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
}

.hkbo-application-form .hkbo-info-box p,
.hkbo-application-form .hkbo-legal-text p {
  margin-bottom: 12px;
}

.hkbo-application-form .hkbo-info-box p:last-child,
.hkbo-application-form .hkbo-legal-text p:last-child {
  margin-bottom: 0;
}

/* Subtitles */
.hkbo-application-form .hkbo-subtitle {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

/* Field helper notes shown under labels */
.hkbo-application-form .hkbo-field-note {
  display: block;
  margin-top: -2px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

/* Inputs */
.hkbo-application-form input[type="text"],
.hkbo-application-form input[type="email"],
.hkbo-application-form input[type="tel"],
.hkbo-application-form input[type="date"],
.hkbo-application-form input[type="number"],
.hkbo-application-form input[type="url"],
.hkbo-application-form select,
.hkbo-application-form textarea,
.hkbo-application-form .form-control {
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  padding: 13px 16px;
  background: #f7f8fb !important;
  border: 1px solid #dfe4ec !important;
  border-radius: 12px !important;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.hkbo-application-form textarea {
  min-height: 150px;
  resize: vertical;
}

.hkbo-application-form input[type="text"]:focus,
.hkbo-application-form input[type="email"]:focus,
.hkbo-application-form input[type="tel"]:focus,
.hkbo-application-form input[type="date"]:focus,
.hkbo-application-form input[type="number"]:focus,
.hkbo-application-form input[type="url"]:focus,
.hkbo-application-form select:focus,
.hkbo-application-form textarea:focus,
.hkbo-application-form .form-control:focus {
  background: #ffffff !important;
  border-color: #b21f2d !important;
  box-shadow: 0 0 0 4px rgba(178, 31, 45, 0.10) !important;
}

/* Hide placeholders because instructions are now visible as helper notes */
.hkbo-application-form input::placeholder,
.hkbo-application-form textarea::placeholder {
  color: transparent;
}

/* Icons */
.hkbo-application-form .form-group {
  position: relative;
}

.hkbo-application-form .form-group > i {
  position: absolute;
  right: 22px;
  top: 45px;
  color: #b21f2d;
  pointer-events: none;
}

.hkbo-application-form .form-group:has(.hkbo-field-note) > i {
  top: 72px;
}

/* Native calendar date fields */
.hkbo-application-form .hkbo-date-field input[type="date"] {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  color-scheme: light;
  padding-right: 44px;
}

.hkbo-application-form .hkbo-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  width: 20px;
  height: 20px;
  filter: none;
}

.hkbo-application-form .hkbo-date-field input[type="date"]:focus {
  background: #ffffff !important;
  border-color: #b21f2d !important;
  box-shadow: 0 0 0 4px rgba(178, 31, 45, 0.10) !important;
}

/* Radio and checkbox groups */
.hkbo-application-form .wpcf7-radio,
.hkbo-application-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hkbo-application-form .wpcf7-list-item {
  margin: 0;
}

.hkbo-application-form .wpcf7-radio .wpcf7-list-item label,
.hkbo-application-form .wpcf7-checkbox .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: #f7f8fb;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.hkbo-application-form .wpcf7-radio .wpcf7-list-item label:hover,
.hkbo-application-form .wpcf7-checkbox .wpcf7-list-item label:hover {
  background: #ffffff;
  border-color: #b21f2d;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.hkbo-application-form input[type="radio"],
.hkbo-application-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  accent-color: #b21f2d;
}

/* File uploads */
.hkbo-application-form input[type="file"].form-control,
.hkbo-application-form input[type="file"] {
  width: 100%;
  height: auto;
  min-height: unset;
  margin-top: 0;
  padding: 18px;
  background: #f7f8fb !important;
  border: 1px dashed #b9c2cf !important;
  border-radius: 14px !important;
  color: #374151;
  cursor: pointer;
}

.hkbo-application-form input[type="file"]:hover {
  background: #ffffff !important;
  border-color: #b21f2d !important;
}

/* Acceptance checkbox field */
.hkbo-application-form .hkbo-acceptance-field {
  padding: 18px 20px;
  background: #fff7f7;
  border: 1px solid rgba(178, 31, 45, 0.25);
  border-radius: 14px;
}

.hkbo-application-form .hkbo-acceptance-field > label {
  display: block;
  margin-bottom: 14px;
  font-weight: 800;
}

.hkbo-application-form .hkbo-acceptance-field .wpcf7-checkbox {
  display: block !important;
  margin-top: 10px;
}

.hkbo-application-form .hkbo-acceptance-field .wpcf7-list-item {
  margin: 0 !important;
}

.hkbo-application-form .hkbo-acceptance-field .wpcf7-list-item label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  font-weight: 700;
}

.hkbo-application-form .hkbo-acceptance-field input[type="checkbox"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Submit button */
.hkbo-application-form input[type="submit"].vs-btn,
.hkbo-application-form .vs-btn,
.wpcf7 input[type="submit"].vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 56px;
  padding: 15px 34px;
  margin-top: 14px;
  background: #b21f2d;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(178, 31, 45, 0.25);
  transition: all 0.2s ease;
}

.hkbo-application-form input[type="submit"].vs-btn:hover,
.hkbo-application-form .vs-btn:hover,
.wpcf7 input[type="submit"].vs-btn:hover {
  background: #921927;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(178, 31, 45, 0.32);
}

/* Conditional groups */
.wpcf7cf-hidden,
.wpcf7cf_group {
  width: 100%;
}

.hkbo-application-form [data-class="wpcf7cf_group"],
.hkbo-application-form .wpcf7cf_group {
  padding: 24px;
  margin: 22px 0 30px;
  background: #fbfcfe;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
}

/* Validation */
.hkbo-application-form .wpcf7-not-valid,
.hkbo-application-form input.wpcf7-not-valid,
.hkbo-application-form select.wpcf7-not-valid,
.hkbo-application-form textarea.wpcf7-not-valid {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.hkbo-application-form .wpcf7-not-valid-tip {
  display: block !important;
  margin-top: 8px !important;
  color: #b91c1c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.hkbo-application-form .form-group:has(.wpcf7-not-valid) .hkbo-field-note {
  color: #991b1b;
}

.hkbo-application-form .wpcf7-radio.wpcf7-not-valid,
.hkbo-application-form .wpcf7-checkbox.wpcf7-not-valid {
  padding: 12px !important;
  border: 1px solid #dc2626 !important;
  border-radius: 14px !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.wpcf7 form .wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 16px 18px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border: 1px solid #dc2626 !important;
  background: #fff5f5 !important;
  color: #991b1b !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #16a34a !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid #f97316 !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .wpcf7 form,
  form.wpcf7-form {
    margin: 24px auto 50px;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .hkbo-application-form h2 {
    font-size: 22px;
  }

  .hkbo-application-form h3 {
    font-size: 18px;
    padding: 14px 16px;
  }

  .hkbo-application-form .wpcf7-radio,
  .hkbo-application-form .wpcf7-checkbox {
    flex-direction: column;
    gap: 10px;
  }

  .hkbo-application-form .wpcf7-radio .wpcf7-list-item label,
  .hkbo-application-form .wpcf7-checkbox .wpcf7-list-item label {
    width: 100%;
    border-radius: 12px;
  }

  .hkbo-application-form .hkbo-acceptance-field .wpcf7-list-item label {
    width: auto !important;
  }

  .hkbo-application-form input[type="submit"].vs-btn,
  .hkbo-application-form .vs-btn,
  .wpcf7 input[type="submit"].vs-btn {
    width: 100%;
  }
}/* End custom CSS */