.oclcf-root,
.oclcf-root * {
  box-sizing: border-box;
}

.oclcf-root {
  --oclcf-primary: #1e4f7c;
  --oclcf-light: #e7f1f8;
  --oclcf-border: #c6d2db;
  --oclcf-text: #17212b;
  font-family: Arial, Helvetica, sans-serif;
}

.oclcf-open,
.oclcf-submit {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: var(--oclcf-primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 25px;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.oclcf-open:hover,
.oclcf-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(30, 79, 124, .22);
}

.oclcf-open:focus-visible,
.oclcf-submit:focus-visible,
.oclcf-close:focus-visible,
.oclcf-form input:focus-visible {
  outline: 3px solid rgba(30, 79, 124, .28);
  outline-offset: 2px;
}

.oclcf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  padding: 28px;
}

.oclcf-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.oclcf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 26, .74);
  backdrop-filter: blur(3px);
}

.oclcf-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  border-radius: 12px;
  background: #fff;
  color: var(--oclcf-text);
  box-shadow: 0 24px 75px rgba(0, 0, 0, .32);
  overflow: hidden;
  animation: oclcf-in .22s ease-out;
}

@keyframes oclcf-in {
  from { opacity: 0; transform: translateY(15px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.oclcf-content {
  max-height: calc(100vh - 56px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 42px 52px 50px;
}

.oclcf-close {
  appearance: none;
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #edf2f6;
  color: #1c2935;
  cursor: pointer;
  font: 400 30px/36px Arial, Helvetica, sans-serif;
}

.oclcf-header {
  margin: 0 auto 26px;
  text-align: center;
}

.oclcf-header .oclcf-brand {
  margin: 0 0 12px;
  color: var(--oclcf-primary);
  font: 700 clamp(31px, 4vw, 43px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
}

.oclcf-header h2 {
  margin: 0 0 12px;
  color: #111;
  font: 700 clamp(22px, 3vw, 30px)/1.2 Georgia, "Times New Roman", serif;
}

.oclcf-header p:last-child {
  margin: 0;
  font: 400 15px/1.5 Georgia, "Times New Roman", serif;
}

.oclcf-contact-grid,
.oclcf-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.oclcf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: #17212b;
  font: 700 12px/1.35 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.oclcf-field input[type="text"],
.oclcf-field input[type="email"],
.oclcf-field input[type="tel"],
.oclcf-field input[type="date"],
.oclcf-field input[type="number"],
.oclcf-field input[type="file"] {
  appearance: none;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--oclcf-border);
  border-radius: 4px;
  background: #fff;
  color: #17212b;
  box-shadow: none;
  padding: 9px 11px;
  font: 400 15px/1.35 Arial, Helvetica, sans-serif;
  text-transform: none;
}

.oclcf-field input:focus {
  border-color: var(--oclcf-primary);
}

.oclcf-field input[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff8f7;
}

.oclcf-form h3 {
  margin: 34px 0 15px;
  color: var(--oclcf-primary);
  font: 700 20px/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: .015em;
}

.oclcf-instructions ul {
  margin: 0;
  padding: 0 0 0 22px;
  color: #111;
  font: 400 15px/1.55 Georgia, "Times New Roman", serif;
}

.oclcf-item-grid {
  align-items: start;
}

.oclcf-item {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--oclcf-border);
  border-radius: 7px;
  background: #fbfdfe;
  padding: 18px;
}

.oclcf-item legend {
  width: auto;
  margin: 0;
  border: 0;
  background: var(--oclcf-light);
  color: #183c5d;
  padding: 7px 12px;
  font: 700 13px/1.25 Arial, Helvetica, sans-serif;
}

.oclcf-item .oclcf-field + .oclcf-field {
  margin-top: 12px;
}

.oclcf-upload input[type="file"] {
  min-height: 48px;
  padding: 7px;
  background: #fff;
}

.oclcf-upload input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 3px;
  background: var(--oclcf-primary);
  color: #fff;
  cursor: pointer;
  margin-right: 9px;
  padding: 8px 10px;
  font-weight: 700;
}

.oclcf-upload small {
  color: #61707d;
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
  text-transform: none;
}

.oclcf-photo-warning {
  margin: 32px 0 18px;
  color: #9c160e;
  text-align: center;
  font: 700 16px/1.4 Georgia, "Times New Roman", serif;
}

.oclcf-consent {
  margin: 0 0 17px;
  padding: 13px 15px;
  border-radius: 5px;
  background: #f2f6f9;
  color: #24313c;
  font: 400 14px/1.45 Arial, Helvetica, sans-serif;
}

.oclcf-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
}

.oclcf-consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}

.oclcf-notice {
  display: none;
  margin: 0 0 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 12px 14px;
  font: 600 14px/1.5 Arial, Helvetica, sans-serif;
}

.oclcf-notice.is-error,
.oclcf-notice.is-success {
  display: block;
}

.oclcf-notice.is-error {
  border-color: #f2b8b5;
  background: #fff2f1;
  color: #9c160e;
}

.oclcf-notice.is-success {
  border-color: #a7d7bd;
  background: #effaf4;
  color: #116638;
}

.oclcf-submit {
  width: 100%;
  min-height: 52px;
}

.oclcf-submit i {
  display: none;
  width: 17px;
  height: 17px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: oclcf-spin .75s linear infinite;
}

.oclcf-form.is-loading .oclcf-submit {
  cursor: wait;
  opacity: .8;
}

.oclcf-form.is-loading .oclcf-submit i {
  display: block;
}

@keyframes oclcf-spin { to { transform: rotate(360deg); } }

.oclcf-hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

body.oclcf-no-scroll {
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .oclcf-modal {
    padding: 0;
  }

  .oclcf-modal.is-open {
    align-items: stretch;
  }

  .oclcf-dialog,
  .oclcf-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .oclcf-content {
    padding: 42px 18px 34px;
  }

  .oclcf-close {
    position: fixed;
    top: 9px;
    right: 10px;
  }

  .oclcf-contact-grid,
  .oclcf-item-grid {
    grid-template-columns: 1fr;
  }

  .oclcf-header {
    padding: 0 25px;
  }

  .oclcf-form h3 {
    font-size: 18px;
  }

  .oclcf-item {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oclcf-dialog,
  .oclcf-open,
  .oclcf-submit {
    animation: none;
    transition: none;
  }
}

