/* Corporate Requests composition and form states, using the shared TEA tokens. */
.cr-page { background: var(--tea-surface); color: var(--tea-color-text-primary); font-family: var(--tea-font-family); min-height: calc(100vh - var(--cr-header-offset, 124px)); min-height: calc(100svh - var(--cr-header-offset, 124px)); }
.cr-app { min-height: inherit; }
.cr-loading { min-height: calc(100vh - var(--cr-header-offset, 124px)); min-height: calc(100svh - var(--cr-header-offset, 124px)); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 32px; text-align: center; }
.cr-loading::before { content: ''; width: 36px; height: 36px; border: 3px solid var(--tea-border); border-top-color: var(--tea-brand); border-radius: 50%; animation: cr-spin .8s linear infinite; }
.cr-ready { animation: cr-appear .25s ease-out; }
.cr-draft-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cr-draft-status .tea-button { padding: 10px 16px; min-height: 40px; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
@keyframes cr-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.cr-page *, .cr-page *::before, .cr-page *::after { box-sizing: border-box; }
.cr-page h1, .cr-page h2, .cr-page h3, .cr-page h4, .cr-page p { margin: 0; }
.cr-page h1 { font: 700 36px/42px var(--tea-font-family); }
.cr-page h2 { font: 700 30px/36px var(--tea-font-family); }
.cr-panel h2, .cr-hero h1 { scroll-margin-top: calc(var(--cr-header-offset, 124px) + 24px); }
.cr-page h3 { font: 700 20px/26px var(--tea-font-family); }
.cr-page h4 { font: 600 14px/20px var(--tea-font-family); }
.cr-page button { font-family: inherit; }
.cr-content { padding: 48px; max-width: 1536px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; }
.cr-hero { padding: 48px max(48px, calc((100% - 1440px)/2)); display: flex; flex-direction: column; gap: 24px; background: var(--tea-subtle); }
.cr-hero h1 { font-size: 48px; line-height: 56px; }
.cr-hero > p:last-child, .cr-hint, .cr-breadcrumb { color: var(--tea-text-muted); font-size: 14px; line-height: 20px; }
.cr-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 2.16px; text-transform: uppercase; }
.cr-scenarios { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.cr-scenario { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; background: var(--tea-surface); cursor: pointer; min-width: 0; border: 1px solid var(--tea-border); border-radius: var(--tea-radius-control); }
.cr-scenario p { color: var(--tea-text-muted); font-size: 14px; line-height: 20px; }
.cr-scenario > span { margin-top: auto; font-size: 14px; font-weight: 600; }
.cr-scenario:hover { border-color: var(--tea-brand); background: var(--tea-subtle); }
.cr-scenario:focus-visible, .cr-stepper button:focus-visible, .cr-choice:focus-within { outline: 3px solid var(--tea-accent); outline-offset: 3px; }
.cr-workspace { display: grid; grid-template-columns: 256px minmax(0,1fr); border: 1px solid var(--tea-border); border-radius: var(--tea-radius-control); align-items: start; }
.cr-stepper { padding: 24px; background: var(--tea-subtle); border-radius: var(--tea-radius-control) 0 0 0; font-size: 14px; line-height: 20px; }
@media (min-width: 1200px) { .cr-stepper { position: sticky; top: calc(var(--cr-header-offset, 124px) + 16px); max-height: calc(100vh - var(--cr-header-offset, 124px) - 32px); overflow-y: auto; align-self: start; } }
.cr-stepper ol { padding: 0; margin: 0 0 16px; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.cr-stepper button { border: 0; padding: 0; background: transparent; color: var(--tea-color-text-primary); display: flex; flex-direction: column; gap: 8px; text-align: left; min-height: 44px; width: 100%; }
.cr-stepper button:disabled { color: var(--tea-text-muted); }
.cr-stepper button[aria-current] { font-weight: 600; }
.cr-stepper > p { color: var(--tea-text-muted); }
.cr-panel { padding: 32px; display: flex; flex-direction: column; gap: 24px; min-width: 0; margin: 0; }
.cr-panel > .cr-eyebrow { color: var(--tea-text-muted); }
.cr-notice { padding: 16px; background: var(--tea-subtle); color: var(--tea-text-muted); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.cr-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.cr-fields--company { grid-template-columns: repeat(6,minmax(0,1fr)); }
.cr-fields--company > .cr-field { grid-column: span 3; }
.cr-fields--company > #field-name, .cr-fields--company > #field-lastname, .cr-fields--company > #field-position { grid-column: span 2; }
.cr-fields--company > #field-industryOther { grid-column: 1/-1; }
.cr-fields--tasks { grid-template-columns: minmax(0,1fr); }
.cr-field { min-width: 0; gap: 8px; }
.cr-field--wide { grid-column: 1/-1; }
.cr-field label, .cr-field legend { font: 600 14px/20px var(--tea-font-family); }
.cr-field small { color: var(--tea-text-muted); font: 400 12px/16px var(--tea-font-family); }
.cr-field > label { margin: 0; }
.cr-field select, .cr-field textarea, .cr-field > input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--tea-control-border); border-radius: var(--tea-radius-control); background-color: var(--tea-surface); color: var(--tea-color-text-primary); font: 400 16px/24px var(--tea-font-family); }
.cr-field textarea { min-height: 120px; resize: vertical; }
.cr-field .tea-task-field__select { min-height: 48px; padding: 12px 48px 12px 12px; color: var(--tea-color-text-primary); }
.cr-field .tea-task-field__select select { height: 100%; padding: 0; }
.cr-field > input:focus, .cr-field select:focus, .cr-field textarea:focus { outline: 3px solid var(--tea-accent); outline-offset: 2px; box-shadow: none; }
.cr-field input:disabled, .cr-field select:disabled, .cr-field textarea:disabled { opacity: .6; cursor: wait; }
.cr-field .tea-task-field__select.is-disabled, .cr-choices:disabled .cr-choice { opacity: .6; cursor: wait; }
.cr-field select:disabled { opacity: 0; }
.cr-choices { padding: 0; margin: 0; border: 0; min-width: 0; }
.cr-choices legend { padding: 0; margin: 0 0 8px; }
.cr-choices .cr-hint { margin-bottom: 12px; font-size: 12px; line-height: 16px; }
.cr-choice { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 0 8px; border: 1px solid var(--tea-border); border-radius: var(--tea-radius-control); min-height: 48px; cursor: pointer; }
.cr-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--tea-brand); }
.cr-choice span { font-weight: 400; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.cr-choice--selected { background: var(--tea-subtle); border-color: var(--tea-brand); }
.cr-radio-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cr-radio-options .cr-choice { margin: 0; }
.cr-school-title { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.cr-school-title img, .cr-choice img { flex-shrink: 0; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cr-actions .tea-button--primary { min-width: min(320px,100%); }
.cr-error, .cr-error-summary { color: var(--tea-color-error, #b42318); }
.cr-field--error > input, .cr-field--error .tea-task-field__select, .cr-field--error textarea, .cr-field--error .cr-choice { border-color: var(--tea-color-error, #b42318); }
.cr-error { font-size: 13px; line-height: 20px; }
.cr-error-summary { padding: 16px; border: 1px solid currentColor; border-radius: var(--tea-radius-control); }
.cr-error-summary ul { margin: 12px 0 0; padding-left: 20px; }
.cr-error-summary button { background: none; color: inherit; border: 0; text-align: left; text-decoration: underline; padding: 8px 0; }
.cr-review { display: flex; flex-direction: column; gap: 16px; }
.cr-review-section { padding: 16px; min-width: 0; border: 1px solid var(--tea-border); border-radius: var(--tea-radius-control); }
.cr-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cr-review-heading h3 { font-size: 18px; }
.cr-review-heading button { padding: 0 8px; font-size: 14px; flex-shrink: 0; }
.cr-review dl { margin: 0; }
.cr-review dt { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--tea-text-muted); margin-top: 20px; }
.cr-review dd { font-size: 14px; line-height: 20px; margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1199px) {
    .cr-content { padding: 32px; }
    .cr-hero { padding: 32px; }
    .cr-hero h1 { font-size: 36px; line-height: 42px; }
    .cr-page h1 { font-size: 30px; line-height: 36px; }
    .cr-scenarios { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cr-workspace { grid-template-columns: minmax(0,1fr); }
    .cr-stepper { border-radius: var(--tea-radius-control) var(--tea-radius-control) 0 0; padding: 24px; }
    .cr-stepper ol { flex-direction: row; margin: 0; gap: 16px; }
    .cr-stepper li { flex: 1; min-width: 0; }
    .cr-stepper > p { display: none; }
    .cr-panel { padding: 24px; }
}
@media (max-width: 575px) {
    .cr-content, .cr-hero { padding: 24px 20px; }
    .cr-page h1, .cr-hero h1 { font-size: 26px; line-height: 32px; }
    .cr-page h2 { font-size: 20px; line-height: 26px; }
    .cr-page h3 { font-size: 18px; line-height: 24px; }
    .cr-scenarios { grid-template-columns: minmax(0,1fr); }
    .cr-fields { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .cr-fields--company > .cr-field { grid-column: 1/-1; }
    .cr-fields--company > #field-name, .cr-fields--company > #field-lastname, .cr-fields--company > #field-position { grid-column: 1/-1; }
    .cr-radio-options { grid-template-columns: minmax(0,1fr); }
    .cr-stepper { padding: 16px 12px; font-size: 12px; line-height: 16px; }
    .cr-stepper ol { gap: 8px; }
    .cr-panel { padding: 20px; gap: 24px; }
    .cr-actions { flex-direction: column; }
    .cr-actions .tea-button { width: 100%; }
    .cr-review-heading h3 { font-size: 16px; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cr-page *, .cr-page *::before { scroll-behavior: auto; transition: none; animation: none; } }

.cr-required { color: #c9253b; }
.cr-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cr-scenario-icon { display:block; width:28px; height:28px; flex:none; background-color:var(--tea-brand); -webkit-mask:var(--cr-scenario-icon) center/contain no-repeat; mask:var(--cr-scenario-icon) center/contain no-repeat; }
.cr-hero { position:relative; isolation:isolate; overflow:hidden; }
.cr-hero::after { content:''; position:absolute; z-index:-1; top:16px; right:max(48px, calc((100% - 1536px)/2 + 48px)); width:210px; height:210px; background:var(--tea-brand); -webkit-mask:url('/images/tea/brand/mark-watermark.svg') center/contain no-repeat; mask:url('/images/tea/brand/mark-watermark.svg') center/contain no-repeat; opacity:.8; pointer-events:none; }
.cr-field .cr-character-count { position:static; top:auto; right:auto; display:flex; justify-content:flex-end; font-size:12px; line-height:16px; color:var(--tea-text-muted); margin:-4px 0 0; }
@media(max-width:1199px) { .cr-hero::after { right:32px; } }
@media(max-width:767px) { .cr-hero::after { right:20px; top:8px; width:150px; height:150px; opacity:.5; } }
