/* ============================================================
   Arkigest - Brand public pages (lead/candidato e simili)
   Tutte le regole sono "scoped" sotto .ark-brand per evitare
   interferenze con le pagine XAF dell'applicazione.
   ============================================================ */

/* ----------------------------- Font Roboto ----------------------------- */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/roboto/Roboto-Light.ttf') format('truetype');
}

.ark-brand .client-proposal-hero.curriculum {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, var(--ark-purple) 100%);
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/roboto/Roboto-Regular.ttf') format('truetype');
}

.ark-brand .client-curriculum-card {
    background: #f4f7f8;
}

.ark-brand .client-curriculum-sections {
    align-items: start;
}

.ark-brand .client-curriculum-wide {
    grid-column: 1 / -1;
}

.ark-brand .client-curriculum-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ark-brand .client-curriculum-item {
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.ark-brand .client-curriculum-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.ark-brand .client-curriculum-item > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.ark-brand .client-curriculum-item strong {
    color: #111827;
    font-size: 0.9rem;
}

.ark-brand .client-curriculum-item span,
.ark-brand .client-curriculum-item h3,
.ark-brand .client-curriculum-item p,
.ark-brand .client-curriculum-empty {
    color: var(--ark-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ark-brand .client-curriculum-item span {
    flex-shrink: 0;
    font-weight: 700;
}

.ark-brand .client-curriculum-item h3 {
    margin: 5px 0 0;
    padding: 0;
    border: 0;
    font-weight: 900;
}

.ark-brand .client-curriculum-item p,
.ark-brand .client-curriculum-empty {
    margin: 8px 0 0;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/roboto/Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/roboto/Roboto-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/roboto/Roboto-Black.ttf') format('truetype');
}

/* ----------------------------- Tokens ----------------------------- */
.ark-brand {
    --ark-teal: #1aa78f;
    --ark-teal-dark: #15917c;
    --ark-hero-bg: #20b096;
    --ark-mint: #c8e7de;
    --ark-mint-soft: #d8efe8;
    --ark-green: #2fa069;
    --ark-green-dark: #258555;
    --ark-green-hover: #277f54;
    --ark-purple: #6f449b;
    --ark-purple-dark: #5b3681;
    --ark-purple-footer: #6f449b;
    --ark-red: #e0473d;
    --ark-ink: #2f3440;
    --ark-muted: #6b7280;
    --ark-border: #e3e7ee;
    --ark-card: #ffffff;
    --ark-radius: 16px;
    --ark-radius-sm: 10px;
    --ark-shadow: 0 18px 40px rgba(23, 75, 64, 0.12);
}

/* ----------------------------- Shell ----------------------------- */
.ark-brand {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ark-mint);
    color: var(--ark-ink);
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ark-brand *,
.ark-brand *::before,
.ark-brand *::after {
    box-sizing: border-box;
}

/* ----------------------------- Hero / testata ----------------------------- */
.ark-hero {
    position: relative;
    background-color: var(--ark-hero-bg);
    background-image: url('/images/brand/puntinato.png'), url('/images/brand/bg-testata.png?v=2');
    background-repeat: repeat-x, repeat-x;
    background-position: top center, center;
    background-size: 1179px 109px, auto 100%;
    color: #fff;
    padding: 28px 24px 22px;
}

.ark-hero__bar {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 104px;
}

.ark-hero__nav {
    position: absolute;
    top: 4px;
    right: 0;
}

.ark-hero__nav a {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.95;
}

.ark-hero__nav a:hover {
    opacity: 1;
}

/* Loghi bicolore: i dettagli teal/viola si fondono con lo sfondo della sezione */
.ark-logo {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ark-hero__logo {
    width: 150px;
    height: 72px;
    background-image: url('/images/brand/logo-testata.svg');
}

.ark-hero__copy {
    max-width: 560px;
    margin: 14px auto 0;
    padding: 0 0 28px;
}

.ark-hero__copy h1 {
    margin: 0 0 14px;
    font-weight: 900;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ark-hero__copy p {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 400;
    line-height: 1.45;
    opacity: 0.95;
}

/* ----------------------------- Contenuto ----------------------------- */
.ark-content {
    flex: 1;
    background: var(--ark-mint);
    padding: 30px 20px 64px;
}

.ark-content__inner {
    max-width: 1080px;
    margin: 0 auto;
}

/* ----------------------------- Footer ----------------------------- */
.ark-footer {
    position: relative;
    background: var(--ark-purple-footer);
    color: #fff;
    padding: 30px 24px 26px;
}

.ark-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.28);
    -webkit-mask: url('/images/brand/puntinato.png') repeat-x top center / 1179px 109px;
    mask: url('/images/brand/puntinato.png') repeat-x top center / 1179px 109px;
    pointer-events: none;
}

.ark-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 64px;
}

.ark-footer__logo {
    flex: none;
    width: 132px;
    height: 64px;
    background-image: url('/images/brand/logo-footer.svg');
}

.ark-footer__text {
    text-align: center;
}

.ark-footer__links {
    margin-bottom: 8px;
}

.ark-footer__links a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
}

.ark-footer__sep {
    color: #fff;
    opacity: 0.7;
    margin: 0 8px;
    font-size: 14px;
}

.ark-footer__copyright {
    font-size: 13px;
    opacity: 0.85;
}

/* ----------------------------- Card ----------------------------- */
.ark-card {
    background: var(--ark-card);
    border-radius: var(--ark-radius);
    box-shadow: var(--ark-shadow);
    padding: 26px 28px;
    margin: 0 auto 22px;
    max-width: 560px;
}

.ark-card--wide {
    max-width: 720px;
}

.ark-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ark-card__head img {
    width: 30px;
    height: 30px;
}

.ark-card__head h2 {
    margin: 0;
    color: var(--ark-purple);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ----------------------------- Form ----------------------------- */
.ark-field {
    margin-bottom: 16px;
}

.ark-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ark-purple);
}

.ark-field .req {
    color: var(--ark-red);
    margin-left: 2px;
}

.ark-input,
.ark-brand .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ark-border);
    border-radius: var(--ark-radius-sm);
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--ark-ink);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ark-input::placeholder,
.ark-brand .form-control::placeholder {
    color: #9aa3af;
}

.ark-input:focus,
.ark-brand .form-control:focus {
    outline: none;
    border-color: var(--ark-teal);
    box-shadow: 0 0 0 3px rgba(26, 167, 143, 0.18);
}

.ark-brand select.form-control {
    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 fill='%236f449b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ark-brand .form-control-file {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--ark-border);
    border-radius: var(--ark-radius-sm);
    background: #fbfcfe;
    cursor: pointer;
}

.ark-row {
    display: flex;
    gap: 14px;
}

.ark-row > * {
    flex: 1;
}

.ark-verify-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
}

.ark-verify-row .ark-field {
    flex: 1;
    margin-bottom: 0;
}

.ark-verify-row .ark-verify-action {
    flex: 0 0 auto;
}

/* ----------------------------- Bottoni ----------------------------- */
.ark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.05s;
}

.ark-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.ark-btn--primary {
    background: var(--ark-green);
    color: #fff;
}

.ark-btn--primary:hover:not(:disabled) {
    background: var(--ark-green-hover);
}

.ark-btn--outline {
    background: #fff;
    border-color: var(--ark-green);
    color: var(--ark-green);
}

.ark-btn--outline:hover:not(:disabled) {
    background: rgba(47, 160, 105, 0.08);
}

.ark-btn--purple {
    background: var(--ark-purple);
    color: #fff;
}

.ark-btn--purple:hover:not(:disabled) {
    background: var(--ark-purple-dark);
}

.ark-btn--block {
    width: 100%;
}

.ark-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ----------------------------- Sezioni step ----------------------------- */
.ark-section {
    background: #fff;
    border-radius: var(--ark-radius);
    box-shadow: var(--ark-shadow);
    padding: 22px 26px;
    margin: 0 auto 20px;
    max-width: 720px;
}

.ark-section h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--ark-purple);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--ark-mint);
}

/* ----------------------------- Esiti / messaggi ----------------------------- */
.ark-note {
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: var(--ark-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ark-note img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.ark-note--ok {
    background: #eaf7f1;
    color: #1d7a54;
    border: 1px solid #bfe6d2;
}

.ark-note--warn {
    background: #fdf3e7;
    color: #b45309;
    border: 1px solid #f6dcb6;
}

.ark-note--info {
    background: #f1ecf7;
    color: var(--ark-purple-dark);
    border: 1px solid #ddd0ec;
}

.ark-error {
    background: #fdecec;
    color: #c0322a;
    border: 1px solid #f4c7c3;
    padding: 14px 16px;
    border-radius: var(--ark-radius-sm);
    margin: 0 auto 18px;
    max-width: 720px;
    font-size: 0.92rem;
}

/* ----------------------------- Offerta selezionata ----------------------------- */
.ark-offer {
    max-width: 560px;
    margin: 0 auto 22px;
    padding: 16px 20px;
    border-radius: var(--ark-radius);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(111, 68, 155, 0.18);
}

.ark-offer__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ark-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ark-offer h2 {
    margin: 10px 0 8px;
    color: var(--ark-purple-dark);
    font-size: 1.2rem;
}

.ark-offer__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--ark-muted);
    font-size: 0.9rem;
}

/* ----------------------------- Success ----------------------------- */
.ark-success {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 38px 30px;
    background: #fff;
    border-radius: var(--ark-radius);
    box-shadow: var(--ark-shadow);
}

.ark-success img {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
}

.ark-success h2 {
    margin: 0 0 10px;
    color: var(--ark-purple);
}

.ark-success p {
    margin: 6px 0;
    color: var(--ark-ink);
}

/* ----------------------------- Firma offerta pubblica ----------------------------- */
.ark-brand .signature-page {
    max-width: 920px;
    margin: 0 auto;
}

.ark-brand .signature-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--ark-shadow);
    padding: 28px 32px 34px;
}

.ark-brand .signature-state-card {
    text-align: center;
    color: var(--ark-purple);
    font-weight: 700;
}

.ark-brand .signature-card.error {
    border-left: 6px solid var(--ark-red);
}

.ark-brand .signature-card h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--ark-purple);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.2;
}

.ark-brand .signature-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ark-purple);
    margin: 28px 0 12px;
    font-size: 1.45rem;
    font-weight: 900;
}

.ark-brand .signature-title-icon,
.ark-brand .signature-section-icon {
    color: var(--ark-purple);
    flex: none;
}

.ark-brand .signature-card .subtitle {
    margin: 0 0 16px;
    color: var(--ark-ink);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ark-brand .offer-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 18px 0 28px;
}

.ark-brand .offer-summary span {
    min-height: 76px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #f1f3f5;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.25;
}

.ark-brand .offer-summary strong {
    display: inline-block;
    margin-bottom: 4px;
    color: #111827;
    font-weight: 900;
}

.ark-brand .preview {
    border: 1px solid var(--ark-border);
    border-radius: var(--ark-radius-sm);
    padding: 18px;
    margin: 20px 0;
    max-height: 420px;
    overflow: auto;
    background: #fff;
}

.ark-brand .signature-card > p {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.ark-brand .signature-pad {
    width: 100%;
    max-width: none;
    height: 96px;
    border: 2px dashed #8a8f99;
    border-radius: 0;
    background: #fff;
    touch-action: none;
    display: block;
}

.ark-brand .actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ark-brand .signature-card button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
}

.ark-brand .signature-card button.primary {
    background: var(--ark-green);
    color: #fff;
}

.ark-brand .signature-card button.primary:hover:not(:disabled) {
    background: var(--ark-green-hover);
}

.ark-brand .signature-card button.secondary {
    background: #d7d7d7;
    color: #666;
}

.ark-brand .signature-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ark-brand .success-box {
    border-radius: var(--ark-radius-sm);
    background: #d1e7dd;
    color: #0f5132;
    padding: 18px;
    margin-top: 20px;
}

.ark-brand .success-box h2 {
    margin-top: 0;
    color: #0f5132;
}

/* ----------------------------- Feedback candidatura cliente ----------------------------- */
.ark-brand .client-feedback-page {
    max-width: 920px;
    margin: 0 auto;
}

.ark-brand .client-feedback-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--ark-shadow);
    padding: 28px 32px 34px;
}

.ark-brand .client-feedback-state-card {
    text-align: center;
    color: var(--ark-purple);
    font-weight: 700;
}

.ark-brand .client-feedback-error {
    border-left: 6px solid var(--ark-red);
}

.ark-brand .client-feedback-card h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--ark-purple);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.2;
}

.ark-brand .client-feedback-title-icon {
    color: var(--ark-purple);
    flex: none;
}

.ark-brand .client-feedback-intro {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
    color: #111827;
    font-size: 0.9rem;
    line-height: 1.35;
}

.ark-brand .client-feedback-position-card,
.ark-brand .client-feedback-info-card {
    min-height: 76px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #f1f3f5;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.25;
}

.ark-brand .client-feedback-position-card {
    max-width: 270px;
    margin-bottom: 34px;
}

.ark-brand .client-feedback-position-card span,
.ark-brand .client-feedback-info-card span {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-weight: 900;
}

.ark-brand .client-feedback-position-card strong,
.ark-brand .client-feedback-info-card strong {
    color: var(--ark-purple);
    font-weight: 900;
}

.ark-brand .client-feedback-section {
    margin-top: 28px;
}

.ark-brand .client-feedback-section h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
}

.ark-brand .client-feedback-section p {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.ark-brand .client-feedback-info-grid {
    display: grid;
    gap: 20px;
}

.ark-brand .client-feedback-info-grid--opportunity {
    grid-template-columns: 1fr 0.72fr 1.35fr 0.72fr 0.72fr 1.35fr;
}

.ark-brand .client-feedback-info-grid--candidate {
    grid-template-columns: 1.25fr 1.1fr 0.8fr 0.9fr;
    flex: 1;
}

.ark-brand .client-feedback-description {
    margin-top: 14px;
}

.ark-brand .client-feedback-candidate-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ark-brand .client-feedback-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: none;
}

.ark-brand .client-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--ark-green);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.ark-brand .client-feedback-btn:hover:not(:disabled) {
    background: var(--ark-green-hover);
}

.ark-brand .client-feedback-final-note {
    margin-top: 34px;
}

.ark-brand .client-feedback-final-note h2 {
    margin-bottom: 6px;
}

.ark-brand .client-feedback-inline-message {
    padding: 12px 14px;
    border-radius: var(--ark-radius-sm);
    background: #f1ecf7;
    color: var(--ark-purple-dark);
    border: 1px solid #ddd0ec;
    font-size: 0.9rem;
    margin: 14px 0;
}

.ark-brand .client-feedback-slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.ark-brand .client-feedback-slot-option {
    display: grid;
    gap: 8px;
    color: var(--ark-purple);
    font-weight: 700;
}

.ark-brand .client-feedback-submit {
    margin-top: 18px;
}

.ark-brand .client-feedback-slot-summary {
    margin: 12px 0 0;
    padding-left: 20px;
}

@media (max-width: 920px) {
    .ark-brand .client-feedback-info-grid--opportunity,
    .ark-brand .client-feedback-info-grid--candidate {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ark-brand .client-feedback-candidate-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ark-brand .client-feedback-card {
        padding: 24px 20px 28px;
    }

    .ark-brand .client-feedback-info-grid--opportunity,
    .ark-brand .client-feedback-info-grid--candidate,
    .ark-brand .client-feedback-slot-list {
        grid-template-columns: 1fr;
    }
}

.ark-brand .client-proposal-page {
    max-width: 920px;
    margin: 0 auto;
}

.ark-brand .client-proposal-card {
    background: #f8f8f8;
    border-radius: 4px;
    box-shadow: var(--ark-shadow);
    padding: 24px;
}

.ark-brand .client-proposal-state-card,
.ark-brand .client-proposal-error {
    background: #fff;
    color: var(--ark-purple);
    font-weight: 800;
}

.ark-brand .client-proposal-error {
    border-left: 6px solid var(--ark-red);
}

.ark-brand .client-proposal-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    border-radius: 4px;
    background: var(--ark-purple);
    color: #fff;
}

.ark-brand .client-proposal-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: var(--ark-purple);
    font-size: 1.2rem;
    font-weight: 900;
}

.ark-brand .client-proposal-hero span,
.ark-brand .client-proposal-hero p {
    margin: 0;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.ark-brand .client-proposal-hero h1 {
    margin: 4px 0 6px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.15;
}

.ark-brand .client-proposal-badges {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.ark-brand .client-proposal-badges span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 4px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.ark-brand .client-proposal-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ark-brand .client-proposal-summary-grid div,
.ark-brand .client-proposal-section {
    background: #fff;
}

.ark-brand .client-proposal-summary-grid div {
    min-height: 72px;
    padding: 18px 20px;
}

.ark-brand .client-proposal-summary-grid span {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 0.72rem;
    font-weight: 900;
}

.ark-brand .client-proposal-summary-grid strong {
    color: #111827;
    font-size: 0.82rem;
    font-weight: 900;
}

.ark-brand .client-proposal-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.ark-brand .client-proposal-section {
    padding: 20px 22px;
}

.ark-brand .client-proposal-section h2 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    color: var(--ark-purple);
    font-size: 1rem;
    font-weight: 900;
}

.ark-brand .client-proposal-section h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    border-radius: 999px;
    background: var(--ark-purple);
    color: #fff;
    font-size: 0.85rem;
}

.ark-brand .client-proposal-section dl {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.ark-brand .client-proposal-section dt,
.ark-brand .client-proposal-section dd {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 0.82rem;
    line-height: 1.3;
}

.ark-brand .client-proposal-section dt {
    color: #111827;
    font-weight: 500;
}

.ark-brand .client-proposal-section dd {
    color: var(--ark-purple);
    font-weight: 900;
}

.ark-brand .client-proposal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.ark-brand .client-proposal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.ark-brand .client-proposal-btn.primary,
.ark-brand .client-proposal-btn.close {
    background: var(--ark-green);
}

.ark-brand .client-proposal-btn.secondary {
    background: var(--ark-purple);
}

.ark-brand .client-proposal-btn.ghost {
    background: #ffffff;
    color: var(--ark-purple);
    border: 1px solid #d8cbe8;
}

.ark-brand .client-proposal-booking {
    margin-top: 28px;
    padding: 24px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #edf0f2;
}

.ark-brand .client-proposal-booking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ark-brand .client-proposal-booking-header span {
    display: block;
    color: var(--ark-green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ark-brand .client-proposal-booking h2 {
    margin: 4px 0 0;
    color: var(--ark-purple);
    font-size: 1.25rem;
    font-weight: 900;
}

.ark-brand .client-proposal-booking p {
    color: #111827;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ark-brand .client-proposal-booking-message {
    margin: 12px 0 16px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.ark-brand .client-proposal-booking-message.success {
    background: #eaf8f5;
    border: 1px solid #bce7de;
    color: #0f6f5f;
}

.ark-brand .client-proposal-booking-message.warning {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

.ark-brand .client-proposal-booking-message.info {
    background: #f1ecf7;
    border: 1px solid #ddd0ec;
    color: var(--ark-purple-dark);
}

.ark-brand .client-proposal-slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 18px;
}

.ark-brand .client-proposal-slot-option {
    display: grid;
    gap: 8px;
    color: var(--ark-purple);
    font-weight: 800;
}

@media (max-width: 920px) {
    .ark-brand .client-proposal-hero,
    .ark-brand .client-proposal-summary-grid,
    .ark-brand .client-proposal-sections,
    .ark-brand .client-proposal-slot-list {
        grid-template-columns: 1fr;
    }

    .ark-brand .client-proposal-badges {
        justify-items: start;
    }

    .ark-brand .client-proposal-booking-header {
        flex-direction: column;
    }

    .ark-brand .client-curriculum-wide {
        grid-column: auto;
    }

    .ark-brand .client-curriculum-item > div {
        flex-direction: column;
        gap: 4px;
    }
}

@media print {
    .ark-brand .ark-hero,
    .ark-brand .ark-footer,
    .ark-brand .no-print {
        display: none !important;
    }

    .ark-brand,
    .ark-brand .ark-content,
    .ark-brand .ark-content__inner {
        background: #fff !important;
        padding: 0 !important;
    }

    .ark-brand .client-proposal-page {
        max-width: none;
    }

    .ark-brand .client-proposal-card {
        box-shadow: none;
        padding: 0;
        background: #fff !important;
    }

    .ark-brand .client-proposal-section,
    .ark-brand .client-proposal-summary-grid div,
    .ark-brand .client-proposal-hero {
        break-inside: avoid;
    }

    .ark-brand .client-proposal-sections {
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .ark-brand .signature-card {
        padding: 24px 20px 28px;
    }

    .ark-brand .offer-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ----------------------------- Checkbox multipli ----------------------------- */
.ark-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 16px;
}

.ark-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--ark-ink);
    cursor: pointer;
}

.ark-checks input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--ark-purple);
}

/* ----------------------------- Spinner ----------------------------- */
.ark-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ark-spin 0.9s linear infinite;
}

@keyframes ark-spin {
    to {
        transform: rotate(360deg);
    }
}

.ark-actions {
    max-width: 720px;
    margin: 22px auto 0;
}

.ark-file-info {
    margin-top: 8px;
    color: var(--ark-green-hover);
    font-size: 0.86rem;
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 720px) {
    .ark-verify-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ark-verify-row .ark-verify-action .ark-btn {
        width: 100%;
    }

    .ark-row {
        flex-direction: column;
    }

    .ark-footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================================
   Compat: classi del form candidatura (step successivi).
   Stessi token brand, applicati alle classi gia' presenti nel markup.
   ============================================================ */
.ark-brand .lead-form-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

.ark-brand .form-section {
    background: #fff;
    border-radius: var(--ark-radius);
    box-shadow: var(--ark-shadow);
    padding: 22px 26px;
    margin: 0 auto 20px;
    max-width: 720px;
}

.ark-brand .form-section h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--ark-purple);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--ark-mint);
}

.ark-brand .form-group {
    margin-bottom: 16px;
}

.ark-brand .form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ark-purple);
}

.ark-brand .form-row {
    display: flex;
    gap: 14px;
}

.ark-brand .form-row > .form-group {
    flex: 1;
}

.ark-brand .form-control-file {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--ark-border);
    border-radius: var(--ark-radius-sm);
    background: #fbfcfe;
    cursor: pointer;
}

.ark-brand .file-info {
    margin-top: 8px;
    color: var(--ark-green-hover);
    font-size: 0.86rem;
}

.ark-brand .multi-select-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 16px;
}

.ark-brand .multi-select-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--ark-ink);
    cursor: pointer;
}

.ark-brand .multi-select-checkbox-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--ark-purple);
}

.ark-brand .compact-info-section {
    padding: 16px 26px;
}

.ark-brand .info-message {
    padding: 13px 15px;
    border-radius: var(--ark-radius-sm);
    background: #f1ecf7;
    color: var(--ark-purple-dark);
    border: 1px solid #ddd0ec;
    font-size: 0.9rem;
}

.ark-brand .form-actions {
    max-width: 720px;
    margin: 22px auto 0;
}

.ark-brand .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: var(--ark-green);
    color: #fff;
    transition: background 0.2s;
}

.ark-brand .btn-submit:hover:not(:disabled) {
    background: var(--ark-green-hover);
}

.ark-brand .btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ark-brand .btn-submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ark-spin 0.9s linear infinite;
}

.ark-brand .error-message {
    background: #fdecec;
    color: #c0322a;
    border: 1px solid #f4c7c3;
    padding: 14px 16px;
    border-radius: var(--ark-radius-sm);
    margin: 0 auto 18px;
    max-width: 720px;
    font-size: 0.92rem;
}

.ark-brand .validation-errors,
.ark-brand .validation-message {
    color: var(--ark-red);
    font-size: 0.82rem;
    margin-top: 4px;
    list-style: none;
    padding-left: 0;
}

@media (max-width: 720px) {
    .ark-brand .form-row {
        flex-direction: column;
    }
}

/* ============================================================
   Compat: lead cliente (identificazione, conferma, radio).
   ============================================================ */
.ark-brand .form-hint {
    display: block;
    margin-top: 6px;
    color: var(--ark-muted);
    font-size: 0.82rem;
}

.ark-brand .identified-card {
    border: 1px solid var(--ark-border);
    border-radius: var(--ark-radius-sm);
    background: #fbfcfe;
    padding: 18px;
}

.ark-brand .identified-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

.ark-brand .identified-header strong {
    color: var(--ark-purple);
    font-size: 1.05rem;
}

.ark-brand .identified-source {
    margin-top: 4px;
    color: var(--ark-muted);
    font-size: 0.86rem;
}

.ark-brand .identified-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ark-brand .identified-grid div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ark-brand .identified-grid span {
    font-size: 0.75rem;
    color: var(--ark-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ark-brand .identified-grid strong {
    color: var(--ark-ink);
    font-size: 0.95rem;
}

.ark-brand .identified-full {
    grid-column: 1 / -1;
}

.ark-brand .confirm-box {
    margin-top: 18px;
    padding: 16px;
    background: #f1ecf7;
    border: 1px solid #ddd0ec;
    border-radius: var(--ark-radius-sm);
}

.ark-brand .confirm-box p {
    margin: 0 0 12px;
    font-weight: 600;
    color: var(--ark-purple-dark);
}

.ark-brand .confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ark-brand .new-lead-prompt {
    margin-top: 24px;
    padding: 18px;
    background: #f1ecf7;
    border: 1px solid #ddd0ec;
    border-radius: var(--ark-radius-sm);
    text-align: center;
}

.ark-brand .new-lead-prompt p {
    margin: 0 0 14px;
    color: var(--ark-purple-dark);
}

.ark-brand .radio-row {
    display: flex;
    gap: 24px;
    margin-top: 6px;
}

.ark-brand .radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--ark-ink);
    cursor: pointer;
}

.ark-brand .radio-option input[type="radio"] {
    accent-color: var(--ark-purple);
}

@media (max-width: 720px) {
    .ark-brand .confirm-actions,
    .ark-brand .identified-header {
        flex-direction: column;
    }

    .ark-brand .identified-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Conferma data colloquio (cliente / candidato).
   ============================================================ */
.ark-brand .confirm-date-page {
    max-width: 560px;
    margin: 0 auto;
}

.ark-brand .confirm-date-state {
    text-align: center;
    color: var(--ark-purple);
    font-weight: 700;
}

.ark-brand .confirm-date-meta {
    margin-bottom: 8px;
}

.ark-brand .confirm-date-meta p {
    margin: 4px 0;
    color: var(--ark-ink);
    font-size: 0.95rem;
}

.ark-brand .confirm-date-meta strong {
    color: var(--ark-purple);
}

.ark-brand .confirm-date-box {
    background: #f1ecf7;
    border-left: 4px solid var(--ark-purple);
    border-radius: var(--ark-radius-sm);
    padding: 16px 20px;
    margin: 22px 0;
}

.ark-brand .confirm-date-box p {
    margin: 0 0 6px;
    color: var(--ark-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ark-brand .confirm-date-box h3 {
    margin: 0;
    color: var(--ark-purple-dark);
    font-size: 1.4rem;
    text-transform: capitalize;
}

.ark-brand .confirm-date-hint {
    margin: 18px 0 12px;
    color: var(--ark-ink);
    font-size: 0.95rem;
}

.ark-brand .confirm-date-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

/* ============================================================
   Conferma data colloquio candidato (scelta proposte).
   ============================================================ */
.ark-brand .offerta-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ark-ink);
    font-size: 0.95rem;
}

.ark-brand .offerta-meta strong {
    color: var(--ark-purple);
}

.ark-brand .proposte-radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.ark-brand .proposta-radio {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--ark-border);
    border-radius: var(--ark-radius-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #fff;
}

.ark-brand .proposta-radio:hover {
    border-color: var(--ark-teal);
    background: var(--ark-mint-soft);
}

.ark-brand .proposta-radio.selected {
    border-color: var(--ark-green);
    background: #eaf7f1;
}

.ark-brand .proposta-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ark-purple);
}

.ark-brand .proposta-radio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ark-brand .proposta-radio-pos {
    font-size: 0.72rem;
    color: var(--ark-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ark-brand .proposta-radio-data {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ark-purple-dark);
    text-transform: capitalize;
}

.ark-brand .proposta-radio-ora {
    font-size: 0.9rem;
    color: var(--ark-ink);
}

.ark-brand .data-finale-box {
    background: #f1ecf7;
    border-left: 4px solid var(--ark-purple);
    border-radius: var(--ark-radius-sm);
    padding: 16px 20px;
    margin: 16px 0;
}

/* ----------------------------- Consenso cookie ----------------------------- */
.ark-cookie-consent {
    --ark-green: #2fa069;
    --ark-green-hover: #277f54;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 24, 32, 0.55);
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ark-cookie-consent__dialog {
    width: min(680px, 100%);
    padding: 24px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 24, 32, 0.28);
    color: #2f3440;
}

.ark-cookie-consent__dialog h2 {
    margin: 0 0 10px;
    color: #6f449b;
    font-size: 1.35rem;
    font-weight: 700;
}

.ark-cookie-consent__dialog p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ark-cookie-consent__dialog a {
    color: #5b3681;
    font-weight: 700;
}

.ark-cookie-consent__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .ark-cookie-consent {
        padding: 14px;
    }

    .ark-cookie-consent__dialog {
        padding: 22px 20px;
    }

    .ark-cookie-consent__actions {
        flex-direction: column-reverse;
    }

    .ark-cookie-consent__actions .ark-btn {
        width: 100%;
    }
}
