/*
 * Styles for the Open Role Cost calculator ("/hire/open-role-cost/") only.
 * Every selector is scoped under .orc so nothing here can affect any other
 * page or component -- this file is only <link>ed from that one page.
 */

.orc {
  position: relative;
  display: block;
}

.orc-card {
  background: #f7f8fa;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 32px;
}

@media (max-width: 767px) {
  .orc-card {
    padding: 22px;
  }
}

.orc-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7686;
  margin-bottom: 14px;
}

.orc-section-label:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e7e9ee;
}

.orc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 767px) {
  .orc-row {
    grid-template-columns: 1fr;
  }
}

.orc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 575px) {
  .orc-grid {
    grid-template-columns: 1fr;
  }
}

.orc-field {
  margin-bottom: 20px;
}

.orc-grid .orc-field {
  margin-bottom: 0;
}

.orc-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color, #18181b);
  margin-bottom: 6px;
}

.orc-micro-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c7686;
  margin-bottom: 6px;
}

.orc-req {
  color: #cb3a2e;
}

.orc-select,
.orc-input {
  width: 100%;
  display: block;
  background: #fff;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--title-color, #18181b);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orc-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C7686' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}

.orc-select:focus,
.orc-input:focus {
  outline: none;
  border-color: #0e9e92;
  box-shadow: 0 0 0 3px rgba(14, 158, 146, 0.15);
}

.orc-input-unit {
  position: relative;
  display: flex;
  align-items: stretch;
}

.orc-input-unit .orc-input {
  padding-right: 46px;
}

.orc-input-unit .orc-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #9aa2b1;
  pointer-events: none;
}

.orc-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6c7686;
}

.orc-hint strong {
  color: #0e9e92;
}

.orc-notes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e7e9ee;
  font-size: 13px;
  line-height: 1.6;
  color: #8891a0;
}

.orc-notes strong {
  color: #6c7686;
}

.orc-submit-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e7e9ee;
}

.orc-submit {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

/* ---- Reveal state ---- */

.orc-result {
  background: #0e9e92;
  color: #fff;
  padding: 36px;
  border-radius: 12px;
}

.orc-result-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  opacity: 0.85;
}

.orc-result-total {
  color: #fff;
  margin: 10px 0 6px;
  font-size: 44px;
  line-height: 1.1;
}

.orc-result-meta {
  color: #fff;
  opacity: 0.9;
  font-size: 15px;
}

.orc-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 575px) {
  .orc-breakdown {
    grid-template-columns: 1fr;
  }
}

.orc-breakdown-item {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px 16px;
}

.orc-breakdown-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.orc-breakdown-value {
  font-size: 20px;
  font-weight: 700;
}

.orc-result-note {
  color: #fff;
  opacity: 0.92;
  margin-top: 22px;
  font-size: 14px;
}

.orc-result .orc-cta {
  margin-top: 14px;
}

.orc-rerun {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
}

.orc-error {
  background: #cb3a2e;
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 20px;
}

.orc-error a {
  color: #fff;
  text-decoration: underline;
}

/* ---- Compact variant (/hire/open-role-cost-instant/) ----
   Inputs on the left, live result pinned on the right so the number is
   always on screen while the visitor types. Stacks below 992px. */

.orc--compact .orc-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: start;
}

.orc--compact .orc-output {
  position: sticky;
  top: 110px;
}

@media (max-width: 991px) {
  .orc--compact .orc-layout {
    grid-template-columns: 1fr;
  }

  .orc--compact .orc-output {
    position: static;
  }
}

.orc--compact .orc-card {
  padding: 22px 24px;
}

.orc--compact .orc-row {
  gap: 16px;
}

.orc--compact .orc-field {
  margin-bottom: 12px;
}

.orc--compact .orc-label {
  font-size: 14px;
  margin-bottom: 4px;
}

.orc--compact .orc-select,
.orc--compact .orc-input {
  padding: 8px 12px;
  font-size: 15px;
}

.orc--compact .orc-input-unit .orc-input {
  padding-right: 42px;
}

.orc--compact .orc-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.orc--compact .orc-section-label:not(:first-child) {
  margin-top: 4px;
  padding-top: 14px;
}

.orc--compact .orc-section-label {
  margin-bottom: 10px;
}

.orc--compact .orc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 575px) {
  .orc--compact .orc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.orc--compact .orc-micro-label {
  font-size: 10px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orc--compact .orc-notes {
  margin-top: 14px;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.orc--compact .orc-result {
  padding: 26px;
}

.orc--compact .orc-result-total {
  font-size: 46px;
}

.orc--compact .orc-breakdown {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.orc--compact .orc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
}

.orc--compact .orc-breakdown-label {
  margin-bottom: 0;
}

.orc--compact .orc-breakdown-value {
  font-size: 18px;
}

.orc--compact .orc-result-note {
  margin-top: 16px;
  font-size: 13px;
}
