/**
 * Self-contained page layout for SmartRecruiters mock pages.
 * oc-oneclick-form / oc-screening-questions layout lives here (light DOM).
 */

@import url("mock/assets/fonts/sap72-font.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "72",
    "72full",
    Arial,
    Helvetica,
    sans-serif;
  color: #383c38;
  background: #f8f9fa;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 1;
  background: #fff;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.oneclick-wrapper {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.topbar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: block;
  max-height: 60px;
  width: auto;
}

.topbar-job-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: right;
  margin-left: auto;
}

.topbar-job-title {
  margin: 5px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #383c38;
}

.topbar-location {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 5px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #545454;
}

.topbar-location-icon {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  fill: currentColor;
}

/* Page shell */
.oc-content {
  display: block;
  position: relative;
  background: #f8f9fa;
}

.page-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

main {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form host elements — ensure custom elements display as blocks in the light DOM */
oc-oneclick-form,
oc-screening-questions,
oc-easy-apply,
oc-personal-information,
oc-experience,
oc-education,
oc-web,
oc-resume-upload,
oc-hiring-manager-message,
oc-nav-first-page,
oc-company-policy,
oc-screening-questions-form,
oc-consent,
oc-nav-screening-questions,
sr-screening-questions-form,
oc-consent-decisions {
  display: block;
  width: 100%;
}

/* Shared form-section layout (publication + screening) */
oc-oneclick-form .form-section,
oc-screening-questions .form-section,
oc-experience .form-section,
oc-education .form-section {
  padding: 24px 0;
  border-bottom: 1px solid #e8e8e8;
}

oc-oneclick-form .form-section--clean,
oc-screening-questions .form-section--clean {
  padding: 10px 0 0;
}

oc-oneclick-form [data-test="screening-questions"].form-section--clean,
oc-oneclick-form [data-test="consent"].form-section--clean,
oc-screening-questions [data-test="screening-questions"].form-section--clean,
oc-screening-questions [data-test="consent"].form-section--clean {
  border-bottom: none;
}

oc-oneclick-form [data-test="consent"].form-section--clean,
oc-screening-questions [data-test="consent"].form-section--clean {
  margin-top: 24px;
}

oc-oneclick-form [data-test="footer"].form-section--clean,
oc-screening-questions [data-test="footer"].form-section--clean {
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: none;
}

oc-screening-questions > div > oc-nav-screening-questions .form-section--clean {
  border-bottom: none;
}

oc-oneclick-form .form-section--clean h2,
oc-screening-questions .form-section--clean h2 {
  margin: 15px 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: #464646;
}

oc-oneclick-form spl-typography-body,
oc-screening-questions spl-typography-body {
  display: block;
  margin-top: 4px;
  margin-bottom: 16px;
}

oc-oneclick-form .easy-apply-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  oc-oneclick-form .easy-apply-row {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}

oc-oneclick-form .easy-apply-row spl-dropzone {
  flex: 1 1 0;
  min-width: 0;
}

oc-oneclick-form .easy-apply-or {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a6e6a;
  font-size: 14px;
  flex: 0 0 auto;
  padding: 0 20px;
}

oc-oneclick-form .apply-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

oc-oneclick-form .seek-button,
oc-oneclick-form .linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 180px;
  padding: 0 24px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

oc-oneclick-form .seek-button {
  background: #e60278;
}

oc-oneclick-form .linkedin-button {
  background: #10375c;
}

oc-oneclick-form .twilio-consent {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #545454;
}

oc-oneclick-form .field-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  oc-oneclick-form .field-row.two-col {
    flex-direction: row;
    gap: 12px;
  }

  oc-oneclick-form .field-row.two-col > * {
    flex: 1;
    min-width: 0;
  }
}

oc-oneclick-form .profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  oc-oneclick-form .profiles-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
}

oc-experience .section-header,
oc-education .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

oc-oneclick-form footer,
oc-screening-questions footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

oc-oneclick-form .footer-row,
oc-screening-questions .footer-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

oc-oneclick-form oc-nav-first-page .footer-row {
  justify-content: flex-end;
}

oc-screening-questions oc-nav-screening-questions .footer-row {
  justify-content: space-between;
}

oc-oneclick-form .resume-dropzone-wrap,
oc-oneclick-form .hiring-manager-message-wrap {
  margin-top: 8px;
}

oc-oneclick-form .company-policy-row,
oc-screening-questions .company-policy-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
}

oc-oneclick-form .policy-link,
oc-screening-questions .policy-link {
  font-size: 12px;
  color: #545454;
  text-decoration: underline;
}

oc-screening-questions .consent-flex-col {
  display: flex;
  flex-direction: column;
}
