:root {
    --sb-primary: #dc2626;
    --sb-secondary: #1f2a74;
    --sb-bg: #f5f7ff;
    --sb-section-border: #e8ecff;
    --sb-font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin !important;
    scrollbar-color: var(--sb-primary) var(--sb-secondary);
}

body.app-bg {
    font-family: var(--sb-font);
    font-optical-sizing: auto;
    background: radial-gradient(circle at top right, #ffffff 0%, var(--sb-bg) 70%);
    min-height: 100vh;
}

.navbar,
.form-control,
.form-select,
.btn,
.table,
.dataTables_wrapper {
    font-family: var(--sb-font);
}

/* Full-width form layout (tablet landscape + large screens) */
.form-page-wide {
    max-width: 100%;
}

.form-page-ltr {
    direction: ltr;
}

.col-widescreen-max {
    max-width: 1560px;
    margin-inline: auto;
}

.app-nav {
    background: linear-gradient(135deg, #1a275f, #2d3f9e);
}

.app-nav .nav-header-cta .bilingual-label--inline {
    gap: 0.35rem 0.5rem;
}

.app-nav .nav-header-cta .bilingual-en,
.app-nav .nav-header-cta .bilingual-ar {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.88rem;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.card-form {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(31, 42, 116, 0.1);
    overflow: hidden;
}

.form-hero {
    text-align: center;
    padding: 0.5rem 0 1.25rem;
    border-bottom: 1px solid var(--sb-section-border);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-hero:not(.form-submit-hero) {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        text-align: start;
        flex-wrap: wrap;
    }

    .form-hero-text {
        flex: 1 1 280px;
        min-width: 0;
    }

    .form-hero:not(.form-submit-hero) .form-hero-logo {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

.form-hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 8px 24px rgba(31, 42, 116, 0.15);
    margin-bottom: 1rem;
}

.form-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sb-secondary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.form-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #5b627f;
    background: #f0f2ff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

.form-hero-badge--inline {
    margin-top: 0;
    justify-content: center;
    max-width: 100%;
}

.form-hero-badge .bilingual-en,
.form-hero-badge .bilingual-ar {
    color: #5b627f;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Submit area — نفس أسلوب form-hero */
.form-hero.form-submit-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 0.75rem 0.75rem;
    margin-top: 1rem;
    margin-bottom: 0;
    border-top: 1px solid var(--sb-section-border);
    border-bottom: none;
}

.form-submit-hero-note {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.form-submit-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.7rem 2.25rem;
    border-radius: 999px;
    background: var(--sb-primary);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-submit-hero-btn:hover {
    background: #b91c1c;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(185, 28, 28, 0.4);
}
.form-submit-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.7rem 2.25rem;
    border-radius: 999px;
    background: #6b7280;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-submit-cancel-btn:hover {
    background: #4b5563;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(75, 85, 99, 0.4);
}

.form-submit-hero-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

.form-submit-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
}

.form-section {
    background: #fafbff;
    border: 1px solid var(--sb-section-border);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem 1.35rem;
    margin-bottom: 1.25rem;
    border-inline-start: 4px solid var(--sb-primary);
}

/* Two columns on tablet landscape & desktop */
.form-sections-grid {
    display: block;
}

@media (min-width: 992px) and (orientation: landscape),
       (min-width: 1200px) {
    .form-sections-grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: start;
    }

    .form-sections-grid .form-section {
        margin-bottom: 0;
    }

    .form-sections-grid .form-section--full {
        grid-column: 1 / -1;
    }
}

.form-section-head {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--sb-section-border);
}

.form-section-titles {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    min-width: 0;
    width: 100%;
    direction: ltr;
}

.form-section-titles .form-section-title {
    margin: 0;
    text-align: left;
}

.form-section-titles .formsection-sub {
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

#contact-section .form-section-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    min-width: 0;
    width: 100%;
}

.form-section-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--sb-secondary), #3d4db8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(31, 42, 116, 0.28);
}

.form-section-title {
    color: var(--sb-secondary);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.3;
}

.formsection-sub {
    color: var(--sb-primary);
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0.15rem 0 0;
    opacity: 0.95;
}

.form-label {
    font-weight: 600;
    color: #3d4566;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.form-label-inner {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.form-label-inner > .bi,
.form-label-inner > i {
    flex-shrink: 0;
    margin-top: 0.2em;
    color: var(--sb-secondary);
    opacity: 0.9;
}

.form-label-inner .bilingual-label {
    flex: 1;
    min-width: 0;
}

/* Bilingual: English left, Arabic right (layout dir=ltr) */
.bilingual-label--inline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1rem;
    width: 100%;
}

.bilingual-en {
    font-weight: 700;
    color: var(--sb-secondary);
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.bilingual-ar {
    font-weight: 700;
    color: var(--sb-secondary);
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
}

.bilingual-label--block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1.25rem;
    width: 100%;
}

.bilingual-en--block {
    display: block;
    font-weight: 600;
    color: #2c3358;
    line-height: 1.45;
    flex: 1 1 48%;
    max-width: 50%;
    text-align: left;
    padding: 0.35rem 0;
}

.bilingual-ar--block {
    display: block;
    font-weight: 700;
    color: #1a275f;
    line-height: 1.55;
    flex: 1 1 48%;
    max-width: 50%;
    text-align: right;
    padding: 0.35rem 0;
}

@media (max-width: 575.98px) {
    .bilingual-label--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .bilingual-en {
        text-align: left;
    }

    .bilingual-ar {
        text-align: right;
    }

    .bilingual-label--block {
        flex-direction: column;
    }

    .bilingual-en--block,
    .bilingual-ar--block {
        max-width: 100%;
    }

    .form-section-titles {
        flex-direction: column;
        align-items: stretch;
    }

    .form-section-titles .form-section-title {
        text-align: left;
    }

    .form-section-titles .formsection-sub {
        text-align: right;
    }

    #contact-section .form-section-title-wrap {
        flex-direction: column;
        align-items: stretch;
    }
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    gap: 0.05rem;
}

.navbar-brand-en {
    font-size: 0.92rem;
    font-weight: 700;
}

.navbar-brand-ar {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
}

.form-section-title[dir="ltr"] {
    letter-spacing: 0.02em;
}

.form-hero-title[dir="ltr"] {
    letter-spacing: 0.02em;
}

.form-control,
.form-select {
    border-radius: 0.85rem;
    border-color: #d8def5;
    padding: 0.65rem 1rem;
}

textarea.form-control {
    border-radius: 0.85rem;
}

.input-group-text {
    border-radius: 0.85rem;
    border-color: #d8def5;
    background: #f4f6ff;
    color: var(--sb-secondary);
}

.input-group > .form-control {
    border-radius: 0.85rem;
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.form-check-input {
    border-color: #adb5ff;
}

.choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.choice-pills.choice-pills--invalid {
    padding: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid var(--bs-danger, #dc3545);
    background: rgba(220, 53, 69, 0.06);
}

.choice-pills .form-check {
    margin: 0;
    padding: 0.45rem 0.85rem;
    background: #fff;
    border: 1px solid var(--sb-section-border);
    border-radius: 999px;
}

.choice-pills .form-check-input {
    margin-inline-start: 0;
    margin-inline-end: 0.4rem;
}

.btn-sb {
    background-color: var(--sb-primary);
    border-color: var(--sb-primary);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
}

.btn-sb:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--sb-section-border);
}

.form-actions--wide {
    margin-top: 1rem;
    padding-top: 1rem;
}

.form-actions--wide > .form-label-inner {
    align-items: center;
}

p.small .form-label-inner {
    align-items: baseline;
}

@media (min-width: 768px) and (orientation: landscape) {
    .form-actions--wide {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.btn-sb-lg {
    min-height: 48px;
    padding-inline: 2rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.form-submit-hero-btn.btn-submit-bilingual {
    gap: 0.75rem;
}

.form-submit-hero-btn .btn-submit-text {
    flex: 1;
    min-width: 0;
    max-width: min(420px, 90vw);
}

.form-submit-hero-btn .btn-submit-text .bilingual-label--inline {
    width: 100%;
}

.form-submit-hero-btn .bilingual-en,
.form-submit-hero-btn .bilingual-ar {
    color: #fff;
    font-weight: 800;
}

/* Larger tap targets on form pages (tablet) */
.form-page-wide .form-control,
.form-page-wide .input-group-text {
    min-height: 46px;
}

.form-page-wide textarea.form-control {
    min-height: 5rem;
}

.waiver-box {
    background: #fff;
    border: 1px solid var(--sb-section-border);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    line-height: 1.75;
}

/* Terms & Conditions scroll block (index.php) */
.terms-waiver-scroll {
    max-height: min(520px, 70vh);
    overflow-y: auto;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--sb-section-border);
    background: #fff;
    line-height: 1.65;
}

.terms-waiver-title {
    color: var(--sb-secondary);
}

.terms-waiver-h4 {
    color: #334155;
    margin-top: 0.25rem;
}

.terms-waiver-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
    font-size: 0.88rem;
    color: #334155;
}

.terms-waiver-lang--ar .terms-waiver-list {
    padding-right: 1.2rem;
    padding-left: 0;
}

.terms-waiver-sep {
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
    margin: 0.85rem 0;
}

.terms-waiver-sep--major {
    border-top-width: 2px;
    border-color: #cbd5e1;
}

.terms-agreement-box {
    padding-top: 0.85rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--sb-section-border);
}

.terms-agreement-heading {
    color: var(--sb-secondary);
    font-size: 0.95rem;
}

.waiver-box .waiver-item {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    align-items: flex-start;
}

.waiver-box .waiver-item:last-child {
    margin-bottom: 0;
}

.waiver-box .waiver-item > i {
    color: var(--sb-primary);
    flex-shrink: 0;
}

.waiver-text-split {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    direction: ltr;
}

.waiver-text-split .waiver-en {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2c3358;
    font-weight: 600;
    flex: 1 1 48%;
    text-align: left;
}

.waiver-text-split .waiver-ar {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--sb-secondary);
    font-weight: 700;
    flex: 1 1 48%;
    text-align: right;
}

@media (max-width: 575.98px) {
    .waiver-text-split {
        flex-direction: column;
    }

    .waiver-text-split .waiver-ar {
        text-align: right;
    }
}

.choice-pills .form-check-label .bilingual-label--inline {
    gap: 0.25rem 0.45rem;
}

.choice-pills .bilingual-en,
.choice-pills .bilingual-ar {
    font-size: 0.875rem;
}

@media (min-width: 992px) and (orientation: landscape),
       (min-width: 1200px) {
    .waiver-box {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem 1.25rem;
    }

    .waiver-box .waiver-item {
        margin-bottom: 0;
    }
}

.muted-en {
    color: #5b627f;
    font-size: 0.9rem;
}

.table-card {
    border-radius: 1rem;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .form-section {
        padding: 1rem;
    }

    .form-section-icon {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.05rem;
    }
}

/* Admin dashboard — عربي */
.dashboard-page .dashboard-title-ar {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sb-secondary);
}

.dashboard-page .table-dashboard-ar thead th {
    vertical-align: middle;
    white-space: normal;
    font-weight: 700;
}

/* Data Tables */
.dt-row {
    overflow-x: auto !important;
}

div.dataTables_wrapper div.dataTables_length select {
    width: 80% !important;
}

.table-responsive {
    overflow-x: hidden !important;
}

/* div.dataTables_wrapper div.dataTables_filter {
    text-align: left !important;
} */

div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child {
    padding: 0 !important;
}

div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child {
    padding: 0 !important;
}

@media screen and (max-width: 767px) {
    div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter, div.dataTables_wrapper div.dataTables_info, div.dataTables_wrapper div.dataTables_paginate {
        text-align: center !important;
    }
}

/* Dashboard: English / numbers in RTL layout — align left, avoid mixed-direction clash */
.dashboard-page .table-dashboard-ar tbody td.dashboard-data-ltr {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.dashboard-page .table-dashboard-ar tbody td.dashboard-data-ltr .dashboard-phone,
.dashboard-page .dashboard-datetime-cell {
    vertical-align: middle;
    max-width: 16rem;
}

.dashboard-page .dashboard-datetime {
    display: block;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: normal;
}

.dashboard-page .dashboard-datetime-en {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.dashboard-page .dashboard-ref-cell {
    white-space: nowrap;
}

.dashboard-page .dashboard-ref-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: #1e3a5f;
    background: linear-gradient(180deg, #e8efff 0%, #dce7fb 100%);
    border: 1px solid #a8b9e0;
}

/* Submission view (public / admin): bilingual Q&A */
.view-submission-page .view-answers-table-wrap {
    overflow-x: auto;
}

.view-submission-page .view-answers-table {
    border-color: #cfd8e8;
    table-layout: fixed;
    border-radius: 0.5rem;
    overflow: hidden;
}

.view-submission-page .view-answers-th {
    vertical-align: middle;
    min-width: 8rem;
    background: linear-gradient(180deg, #eef2ff 0%, #e8ecff 100%) !important;
    border-color: #c5cce8 !important;
    font-weight: 700;
    text-align: center;
}

.view-submission-page .view-answers-td {
    vertical-align: middle;
    border-color: #dde4f0 !important;
    padding: 0.65rem 0.85rem !important;
}

.view-submission-page .view-answers-table tbody tr:nth-child(odd) .view-answers-td--q {
    background: #f1f5ff;
}

.view-submission-page .view-answers-table tbody tr:nth-child(odd) .view-answers-td--a {
    background: #fafcff;
}

.view-submission-page .view-answers-table tbody tr:nth-child(even) .view-answers-td--q {
    background: #e8edfc;
}

.view-submission-page .view-answers-table tbody tr:nth-child(even) .view-answers-td--a {
    background: #f4f7fd;
}

.view-submission-page .view-answers-td--q {
    width: 40%;
}

.view-submission-page .view-answers-td--a {
    width: 60%;
    direction: ltr;
    text-align: center;
}

.view-submission-page .view-answers-td--terms {
    vertical-align: top;
    text-align: start;
}

/* Same line: Arabic · English — one size */
.view-submission-page .view-bilingual-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.view-submission-page .view-bilingual-inline__ar,
.view-submission-page .view-bilingual-inline__en {
    font-size: inherit;
    font-weight: 500;
    color: #1e293b;
}

.view-submission-page .view-bilingual-inline__sep {
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

.view-submission-page .view-cell-mono {
    direction: ltr;
    text-align: start;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    unicode-bidi: isolate;
    font-size: 0.92rem;
    color: #0f172a;
}

.view-submission-page .view-answers-td--a .view-cell-mono--answer {
    text-align: start;
}

.view-submission-page .view-answer-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.view-submission-page .view-answer-badge--yes {
    background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
    color: #14532d;
    border: 1px solid #4ade80;
    box-shadow: 0 1px 2px rgba(20, 83, 45, 0.12);
}

.view-submission-page .view-answer-badge--no {
    background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
    color: #7f1d1d;
    border: 1px solid #f87171;
    box-shadow: 0 1px 2px rgba(127, 29, 29, 0.1);
}

.view-submission-page .view-answer-badge__sep {
    opacity: 0.85;
    font-weight: 700;
}

.view-submission-page .view-answer-badge--yes .view-answer-badge__sep {
    color: #166534;
}

.view-submission-page .view-answer-badge--no .view-answer-badge__sep {
    color: #991b1b;
}

.view-submission-page .view-meta-datetime-wrap {
    line-height: 1.55;
}

.view-submission-page .view-meta-datetime--ar {
    display: block;
    font-variant-numeric: tabular-nums;
    font-size: 0.88rem;
}

.view-submission-page .view-meta-datetime--en {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* Handwritten signature pad (touch / stylus) */
.signature-pad-wrap {
    border: 2px solid var(--sb-section-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fefefe 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.signature-pad-wrap.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.signature-canvas {
    display: block;
    width: 100%;
    max-width: 720px;
    height: 168px;
    min-height: 140px;
    touch-action: none;
    -ms-touch-action: none;
    cursor: crosshair;
    background: #fff;
    border-bottom: 1px dashed #e2e8f0;
}

.signature-pad-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
}

.view-signature-preview-wrap {
    max-width: 100%;
}

.view-signature-preview {
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    object-fit: contain;
}