/* ── CCVL Frontend Form Styles ──────────────────────────────────────────── */

.ccvl-form-wrapper {
    min-height: 400px;
    padding: 40px 20px;
}

.ccvl-form-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    padding: 40px;
}

.ccvl-form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.ccvl-form-logo { flex-shrink: 0; }
.ccvl-form-logo img { max-height: 80px; display: block; }

.ccvl-form-title {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    text-align: right;
}

.ccvl-form-desc {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

/* ── Pages ── */
.ccvl-pages-container { position: relative; }
.ccvl-page { transition: opacity .2s; }
.ccvl-page[style*="display:none"] { display: none !important; }

/* ── Fields ── */
.ccvl-field-wrapper { margin-bottom: 20px; }
.ccvl-field-wrapper[style*="display:none"] { display: none !important; }

.ccvl-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.ccvl-required { color: #d63638; margin-left: 2px; }

.ccvl-field-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.ccvl-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.ccvl-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}

.ccvl-input.ccvl-has-error { border-color: #d63638; }

.ccvl-input-group {
    display: flex;
    align-items: stretch;
}

.ccvl-input-group .ccvl-input {
    border-radius: 0 6px 6px 0;
    border-left: none;
    flex: 1;
}

.ccvl-input-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

/* ── Text block ── */
.ccvl-textblock-style-info    { background: #e8f4fd; border-left: 4px solid #3498db; padding: 12px 16px; border-radius: 4px; }
.ccvl-textblock-style-warning { background: #fef9e7; border-left: 4px solid #f39c12; padding: 12px 16px; border-radius: 4px; }
.ccvl-textblock-style-success { background: #eafaf1; border-left: 4px solid #2ecc71; padding: 12px 16px; border-radius: 4px; }
.ccvl-textblock-title { margin: 0 0 8px; font-size: 15px; }
.ccvl-textblock-content { font-size: 14px; }

/* ── Calculated ── */
.ccvl-calculated-result {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    min-width: 120px;
}

/* ── Signature ── */
.ccvl-signature-wrapper { position: relative; }
.ccvl-signature-canvas {
    display: block;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: crosshair;
    width: 100%;
    max-width: 100%;
    touch-action: none;
}
.ccvl-signature-canvas.ccvl-sig-active { border-color: #2271b1; }
.ccvl-signature-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.ccvl-sig-clear {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.ccvl-sig-clear:hover { background: #f0f0f0; }
.ccvl-sig-status { font-size: 12px; color: #888; }

/* ── Navigation ── */
.ccvl-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.ccvl-page-progress {
    font-size: 12px;
    color: #888;
}

.ccvl-progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.ccvl-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 2px;
    transition: width .3s ease;
}

/* ── Buttons ── */
.ccvl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
}

.ccvl-btn-prev {
    background: #f0f0f0;
    color: #333;
}
.ccvl-btn-prev:hover { background: #e0e0e0; }

.ccvl-btn-next,
.ccvl-btn-submit {
    background: #2271b1;
    color: #fff;
}
.ccvl-btn-next:hover,
.ccvl-btn-submit:hover { background: #135e96; }
.ccvl-btn-next:active,
.ccvl-btn-submit:active { transform: scale(.98); }

.ccvl-btn-submit:disabled { background: #aaa; cursor: not-allowed; }

.ccvl-btn-download {
    background: #00a32a;
    color: #fff;
}
.ccvl-btn-download:hover { background: #008a20; }

.ccvl-form-actions { margin-top: 24px; text-align: right; }

/* ── Validation errors ── */
.ccvl-field-error {
    display: block;
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
}

.ccvl-form-messages {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}
.ccvl-msg-error { background: #fce8e8; border: 1px solid #d63638; color: #d63638; }
.ccvl-msg-success { background: #eafaf1; border: 1px solid #00a32a; color: #006b1b; }

/* ── Confirmation page ── */
.ccvl-confirmation {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 12px;
}

.ccvl-confirmation-success {
    text-align: center;
    padding: 32px 20px;
    background: #eafaf1;
    border: 1px solid #b7dfca;
    border-radius: 10px;
}

.ccvl-confirmation-icon {
    font-size: 56px;
    line-height: 1;
    color: #00a32a;
    margin-bottom: 12px;
}

.ccvl-confirmation-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.ccvl-confirmation-ref {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.ccvl-confirmation-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    background: #f0f6fc;
    border: 1px solid #c3d4e8;
    border-radius: 10px;
    text-align: center;
}

.ccvl-btn-download-lg {
    font-size: 16px !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    letter-spacing: .02em;
}

.ccvl-confirmation-pdf-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.ccvl-email-section {
    padding: 24px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
}

.ccvl-email-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 14px;
}

.ccvl-email-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ccvl-email-row .ccvl-input { flex: 1; }

.ccvl-email-result { margin-top: 10px; font-size: 13px; }

@media (max-width: 600px) {
    .ccvl-email-row { flex-direction: column; align-items: stretch; }
}

/* ── Error page ── */
.ccvl-error { color: #d63638; font-style: italic; }

/* ── Participant field ── */
.ccvl-field-participant .ccvl-field-group-label { display: block; font-weight: 600; margin-bottom: 12px; }
.ccvl-participant-counts { display: flex; gap: 16px; margin-bottom: 4px; }
.ccvl-participant-counts .ccvl-sub-field { flex: 1; margin-bottom: 0; }
.ccvl-participant-counts select { max-width: 160px; }

/* Sub-pager steps */
.ccvl-p-step { display: none; }

/* Sub-pager nav */
.ccvl-p-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    gap: 12px;
    flex-wrap: wrap;
}
.ccvl-p-progress {
    font-size: 13px;
    color: #666;
    text-align: center;
    flex: 1;
}
.ccvl-p-confirmed {
    font-size: 14px;
    font-weight: 600;
    color: #006b1b;
    flex: 1;
    text-align: center;
}

/* Participant block */
.ccvl-participant-block {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    background: #fafafa;
}
.ccvl-participant-header { margin-bottom: 16px; }
.ccvl-participant-title { margin: 0; font-size: 15px; font-weight: 600; color: #1d2327; }
.ccvl-participant-row { display: flex; gap: 16px; }
.ccvl-participant-row .ccvl-sub-field { flex: 1; }

.ccvl-sub-field { display: flex; flex-direction: column; margin-bottom: 12px; }
.ccvl-sub-field label { font-size: 13px; font-weight: 500; margin-bottom: 4px; }

/* Room assignment step */
.ccvl-room-assignment { }
.ccvl-room-assignment-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #1d2327; }
.ccvl-room-assignment-desc { font-size: 13px; color: #666; margin: 0 0 20px; }
.ccvl-room-block {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fafafa;
}
.ccvl-room-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #1d2327; }
.ccvl-room-participants { display: flex; flex-direction: column; gap: 8px; }
.ccvl-room-cb-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background .1s, border-color .1s;
}
.ccvl-room-cb-label:hover { background: #f0f6fc; border-color: #c3d4e8; }
.ccvl-room-cb { width: auto; flex-shrink: 0; margin: 0; cursor: pointer; accent-color: #2271b1; }
.ccvl-room-participant-name { margin-left: 8px; }
.ccvl-room-cb:checked + .ccvl-room-participant-name { font-weight: 600; color: #2271b1; }
.ccvl-room-participant-name { }

/* ── Multiply ── */
.ccvl-field-multiply .ccvl-multiply-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.ccvl-multiply-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.ccvl-multiply-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccvl-multiply-col label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.ccvl-multiply-operator {
    font-size: 22px;
    font-weight: 300;
    color: #888;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.ccvl-multiply-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 6px;
    min-height: 44px;
}

.ccvl-multiply-result-label {
    font-size: 13px;
    color: #555;
    flex: 1;
}

.ccvl-multiply-result-value {
    font-size: 22px;
    font-weight: 700;
    color: #2271b1;
    min-width: 60px;
    text-align: right;
}

.ccvl-multiply-result-value:empty::before {
    content: '—';
    font-weight: 300;
    color: #aaa;
}

.ccvl-multiply-currency {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
}

@media (max-width: 600px) {
    .ccvl-multiply-inputs { flex-wrap: wrap; }
    .ccvl-multiply-operator { padding-bottom: 0; align-self: center; }
}

/* ── Page content ── */
.ccvl-field-page-content .ccvl-page-content-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1d2327;
}

.ccvl-page-content-body {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.ccvl-page-content-body p  { margin: 0 0 12px; }
.ccvl-page-content-body ul,
.ccvl-page-content-body ol { margin: 0 0 12px; padding-left: 24px; }
.ccvl-page-content-body li { margin-bottom: 4px; }
.ccvl-page-content-body h1,
.ccvl-page-content-body h2,
.ccvl-page-content-body h3 { margin: 16px 0 8px; }
.ccvl-page-content-body a  { color: #2271b1; }

.ccvl-page-content-empty { color: #aaa; font-style: italic; font-size: 13px; }

/* ── Approval block ── */
.ccvl-field-approval .ccvl-approval-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

.ccvl-approval-block {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ccvl-approval-textarea { resize: vertical; }

.ccvl-approval-row-meta {
    display: flex;
    gap: 16px;
}

.ccvl-approval-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccvl-approval-col label,
.ccvl-approval-row > label:not(.ccvl-approval-cb-label) {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}

.ccvl-approval-cb-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.ccvl-approval-cb {
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #2271b1;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ccvl-approval-cb-text { color: #333; }

.ccvl-field-approval .ccvl-field-signature { margin: 0; }
.ccvl-field-approval .ccvl-field-signature label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .ccvl-approval-row-meta { flex-direction: column; gap: 12px; }
}

/* ── Checkbox ── */
.ccvl-checkbox-group-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.ccvl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    font-weight: normal;
}

.ccvl-checkbox-input {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
    cursor: pointer;
}

.ccvl-checkbox-text { color: #333; }

/* ── Boolean switch ── */
.ccvl-field-boolean .ccvl-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccvl-switch-opt {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    transition: color .2s;
    user-select: none;
}

/* Reset the global .ccvl-field label rule that forces display:block */
.ccvl-field-boolean .ccvl-switch {
    display: inline-block;
    font-weight: normal;
    margin-bottom: 0;
    color: inherit;
    cursor: pointer;
}

.ccvl-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ccvl-switch-track {
    display: block;
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    transition: background .25s;
    position: relative;
}

.ccvl-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform .25s;
}

.ccvl-switch-input:checked ~ .ccvl-switch-track { background: #2271b1; }
.ccvl-switch-input:checked ~ .ccvl-switch-track .ccvl-switch-thumb { transform: translateX(22px); }

.ccvl-switch-input:focus ~ .ccvl-switch-track {
    box-shadow: 0 0 0 3px rgba(34,113,177,.2);
}

.ccvl-switch-wrapper:has(.ccvl-switch-input:not(:checked)) .ccvl-switch-opt-no { color: #1d2327; font-weight: 600; }
.ccvl-switch-wrapper:has(.ccvl-switch-input:checked) .ccvl-switch-opt-yes    { color: #2271b1; font-weight: 600; }

/* ── Searchable select ── */
.ccvl-ss-wrapper { position: relative; }
.ccvl-ss-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #8c8f94;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.ccvl-ss-wrapper.ccvl-ss-open .ccvl-ss-dropdown { display: block; }
.ccvl-ss-option {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background .1s;
}
.ccvl-ss-option:hover { background: #f0f6fc; }
.ccvl-ss-search { border-radius: 4px; }
.ccvl-ss-wrapper.ccvl-ss-open .ccvl-ss-search { border-radius: 4px 4px 0 0; }

/* ── Period field ── */
.ccvl-field-period .ccvl-field-group-label { display: block; font-weight: 600; margin-bottom: 8px; }
.ccvl-period-row { display: flex; gap: 16px; }
.ccvl-period-col { flex: 1; }
.ccvl-period-col label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }

/* ── Urgence ── */
.ccvl-urgence-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
    color: #333;
}

.ccvl-urgence-count-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ccvl-urgence-count-row label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
}

.ccvl-urgence-count-row .ccvl-input {
    width: auto;
    min-width: 80px;
}

.ccvl-urgence-contact {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    background: #fafafa;
    margin-bottom: 14px;
}

.ccvl-urgence-contact2 { display: none; }
.ccvl-urgence-contact2.ccvl-urgence-visible { display: block; }

.ccvl-urgence-contact-head {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2271b1;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0ecf8;
}

.ccvl-urgence-row {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.ccvl-urgence-row .ccvl-sub-field { flex: 1; }

@media (max-width: 600px) {
    .ccvl-urgence-row { flex-direction: column; gap: 0; }
    .ccvl-urgence-count-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ccvl-urgence-count-row .ccvl-input { width: 100%; }
}

/* ── Tarifs ── */
.ccvl-field-tarifs {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ccvl-tarifs-header {
    background: #2271b1;
    padding: 12px 20px;
}

.ccvl-tarifs-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.ccvl-tarifs-section {
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.ccvl-tarifs-section:last-of-type { border-bottom: none; }

.ccvl-tarifs-section-head {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2271b1;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0ecf8;
}

.ccvl-tarifs-chambre-row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccvl-tarifs-chambre-row label { font-size: 13px; font-weight: 500; color: #444; }

.ccvl-tarifs-grid-head {
    display: grid;
    grid-template-columns: 1fr 24px 1fr 24px 120px;
    gap: 8px;
    margin-bottom: 6px;
}

.ccvl-tarifs-grid-head span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #999;
}

.ccvl-tarifs-calc-row {
    display: grid;
    grid-template-columns: 1fr 24px 1fr 24px 120px;
    gap: 8px;
    align-items: end;
    margin-bottom: 10px;
}

.ccvl-tarifs-calc-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ccvl-tarifs-calc-cell label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.ccvl-tarifs-calc-cell--ref {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    justify-content: center;
}

.ccvl-tarifs-calc-cell--ref label { margin-bottom: 2px; }

.ccvl-tarifs-ref-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-height: 24px;
    display: block;
}

.ccvl-tarifs-ref-value:empty::before {
    content: '—';
    color: #bbb;
    font-weight: 300;
}

.ccvl-tarifs-op {
    font-size: 20px;
    font-weight: 300;
    color: #aaa;
    text-align: center;
    padding-bottom: 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ccvl-tarifs-result-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 12px;
    background: #f0f6fc;
    border: 2px solid #c3d4e8;
    border-radius: 6px;
    min-height: 42px;
}

.ccvl-tarifs-auto {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
    min-width: 60px;
    text-align: right;
}

.ccvl-tarifs-auto:empty::before {
    content: '—';
    font-weight: 300;
    color: #bbb;
}

.ccvl-tarifs-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin: 6px 0 12px;
}

.ccvl-tarifs-subtotal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 16px;
    background: #e8f2fb;
    border: 2px solid #2271b1;
    border-radius: 6px;
}

.ccvl-tarifs-subtotal-label { flex: 1; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ccvl-tarifs-subtotal-value { font-size: 22px; font-weight: 700; color: #2271b1; min-width: 80px; text-align: right; }
.ccvl-tarifs-subtotal-value:empty::before { content: '—'; font-weight: 300; color: #bbb; }

.ccvl-tarifs-currency { font-size: 17px; font-weight: 600; color: #2271b1; }

.ccvl-tarifs-simple-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ccvl-tarifs-simple-row .ccvl-tarifs-calc-cell { flex: 1; }
.ccvl-tarifs-unit { font-size: 16px; color: #555; padding-bottom: 8px; }

.ccvl-tarifs-input-hint { font-size: 11px; color: #999; font-style: italic; }

.ccvl-tarifs-textarea-row {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ccvl-tarifs-textarea-row label { font-size: 13px; font-weight: 500; color: #444; }

.ccvl-tarifs-assurance-list {
    margin: 0 0 14px 0;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
}

.ccvl-tarifs-assurance-list li { margin-bottom: 4px; }

.ccvl-tarifs-total-general,
.ccvl-tarifs-cout-total {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
}

.ccvl-tarifs-total-general {
    background: #f0f4f8;
    border-top: 2px solid #c3d4e8;
    border-bottom: 2px solid #c3d4e8;
}

.ccvl-tarifs-cout-total {
    background: #1d4a73;
}

.ccvl-tarifs-total-label { flex: 1; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.ccvl-tarifs-total-value { font-size: 24px; font-weight: 700; color: #2271b1; min-width: 90px; text-align: right; }
.ccvl-tarifs-total-value:empty::before { content: '—'; font-weight: 300; color: #bbb; }

.ccvl-tarifs-cout-label { flex: 1; font-size: 15px; font-weight: 700; color: #fff; }
.ccvl-tarifs-cout-value { font-size: 26px; font-weight: 700; color: #fff; min-width: 90px; text-align: right; }
.ccvl-tarifs-cout-value:empty::before { content: '—'; font-weight: 300; color: rgba(255,255,255,.4); }
.ccvl-tarifs-cout-total .ccvl-tarifs-currency { color: #fff; font-size: 18px; }

/* Display table (format_display) */
.ccvl-tarifs-display { width: 100%; border-collapse: collapse; font-size: 13px; }
.ccvl-tarifs-display td { padding: 5px 8px; border-bottom: 1px solid #eee; }
.ccvl-tarifs-display td:last-child { text-align: right; white-space: nowrap; }
.ccvl-tarifs-display .ccvl-td-section td { background: #f0f6fc; font-weight: 600; color: #2271b1; font-size: 12px; text-transform: uppercase; padding-top: 10px; }
.ccvl-tarifs-display .ccvl-td-subtotal td { background: #f9f9f9; }
.ccvl-tarifs-display .ccvl-td-total td { background: #e8f2fb; border-top: 2px solid #2271b1; padding-top: 8px; }
.ccvl-tarifs-display .ccvl-td-grand-total td { background: #1d4a73; color: #fff; border-top: 3px solid #0d2e4a; font-size: 14px; }

@media (max-width: 600px) {
    .ccvl-tarifs-calc-row,
    .ccvl-tarifs-grid-head { grid-template-columns: 1fr; }
    .ccvl-tarifs-grid-head { display: none; }
    .ccvl-tarifs-op { display: none; }
    .ccvl-tarifs-result-cell { justify-content: flex-start; }
    .ccvl-tarifs-simple-row { flex-direction: column; align-items: stretch; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ccvl-participant-row { flex-direction: column; gap: 0; }
    .ccvl-participant-counts { flex-direction: column; gap: 0; }
    .ccvl-period-row { flex-direction: column; gap: 8px; }
    .ccvl-form-container { padding: 20px 16px; }
    .ccvl-form-title { font-size: 20px; }
    .ccvl-page-nav { flex-direction: column; gap: 10px; }
    .ccvl-p-nav { flex-direction: column; align-items: stretch; }
    .ccvl-p-nav .ccvl-btn { width: 100%; text-align: center; }
    .ccvl-send-email-form { flex-direction: column; }
}

