html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body.daffaq-template {
    min-height: 100vh;
    background: linear-gradient(130deg, #0066CC 0%, #0099FF 28%, #80D4FF 55%, #FF9933 80%, #E64D19 100%);
    padding: 48px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

.daffaq-dot-spinner {
    display: inline-flex;
    gap: 5px;
}

.daffaq-dot-spinner span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    animation: daffaq-dot-pulse 1s infinite ease-in-out;
}

.daffaq-dot-spinner span:nth-child(2) {
    animation-delay: 0.15s;
}

.daffaq-dot-spinner span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes daffaq-dot-pulse {
    0%, 80%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Note: Do not forcibly hide page-level horizontal overflow here — table width may require horizontal scrolling on small screens. */

.daffaq-view--assessment {
    width: 100%;
    max-width: 1040px;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 28px 60px rgba(0, 66, 105, 0.18);
    color: #1B2A41;
    overflow: hidden;
}

.daffaq-view__chrome {
    padding: 36px 40px 44px;
}

.daffaq-view--main .daffaq-view__chrome {
    max-width: 1100px;
    margin: 0 auto;
}

.daffaq-main-hero {
    margin-bottom: 32px;
}

.daffaq-main-hero__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    box-shadow:
        0 25px 65px rgba(16, 64, 122, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.daffaq-main-hero__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.daffaq-main-lookup__pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.daffaq-main-row-actions {
    display: none;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15,76,129,0.06);
}
.daffaq-row-actions__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.daffaq-row-result-block {
    padding: 12px;
    border-radius: 8px;
    background: #f7fbff;
    color: #0b2447;
}
.daffaq-result-block__summary {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.daffaq-result-block__summary h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0B1F33;
}
.daffaq-result-block__summary p {
    margin: 4px 0;
    color: #334155;
    font-size: 14px;
}
.daffaq-result-block__summary strong {
    color: #0B1F33;
}
.daffaq-risk-factor-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
}
.daffaq-risk-factor-panel header {
    margin-bottom: 12px;
}
.daffaq-risk-factor-panel__eyebrow {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}
.daffaq-risk-factor-panel h4 {
    margin: 4px 0 0;
    font-size: 18px;
    color: #0B1F33;
}
.daffaq-risk-factor__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.daffaq-risk-factor__item {
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 12px;
    background: rgba(226, 232, 240, 0.35);
}
.daffaq-risk-factor__item.has-data {
    border-color: var(--factor-color, #0ea5e9);
    background: rgba(14, 165, 233, 0.08);
}
.daffaq-risk-factor__item strong {
    display: block;
    font-size: 14px;
    color: #0B1F33;
}
.daffaq-risk-factor__item small {
    display: block;
    color: #64748b;
    font-size: 12px;
}
.daffaq-risk-factor__count {
    flex: 0 0 auto;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0B1F33;
}
.daffaq-risk-factor__count.is-empty {
    opacity: 0.6;
}
.daffaq-risk-factor__empty {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.daffaq-result-panel {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.daffaq-result-panel--summary {
    padding: 20px;
}
.daffaq-result-panel--identity {
    padding: 20px;
}
.daffaq-result-panel__header {
    margin-bottom: 12px;
}
.daffaq-result-panel__header h4 {
    margin: 0;
    font-size: 18px;
    color: #0B1F33;
}
.daffaq-result-panel__header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #475569;
}
.daffaq-identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.daffaq-identity-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
}
.daffaq-identity-card h4 {
    margin: 6px 0 12px;
    font-size: 22px;
    color: #0b1f33;
}
.daffaq-identity__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.daffaq-identity__stats span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.daffaq-identity__stats strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #0f172a;
}
.daffaq-identity__contact {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}
.daffaq-identity__contact span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 6px;
}
.daffaq-identity__contact p {
    margin: 0;
    color: #0f172a;
    line-height: 1.4;
}
.daffaq-share-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.daffaq-share-card h4 {
    margin: 0;
    font-size: 18px;
    color: #0b1f33;
}
.daffaq-share-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}
.daffaq-share__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    gap: 8px;
}
.daffaq-share__qr img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}
.daffaq-share__qr small {
    font-size: 12px;
    color: #0f172a;
}
.daffaq-share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.daffaq-share__status {
    margin: 0;
    font-size: 14px;
    color: #b45309;
}
.daffaq-share__hint {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}
.daffaq-result-summary__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}
.daffaq-result-summary__body {
    flex: 1 1 260px;
}
.daffaq-result-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}
.daffaq-result-summary__title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.daffaq-result-summary__title h4 {
    margin: 0;
    font-size: 22px;
    color: #0B1F33;
}
.daffaq-result-pill {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(14, 165, 233, 0.12);
    color: #0f172a;
}
.daffaq-result-summary__text {
    margin: 10px 0 14px;
    color: #334155;
    line-height: 1.45;
}
.daffaq-result-summary__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.daffaq-result-summary__meta-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.daffaq-result-summary__meta strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: #0b1f33;
}
.daffaq-result-summary__follow {
    margin: 12px 0 0;
    font-size: 14px;
    color: #0f172a;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}
.daffaq-result-summary__follow span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    margin-bottom: 4px;
}
.daffaq-result-score {
    flex: 0 0 220px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.35);
    padding: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.04));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.daffaq-result-score__value {
    font-size: 40px;
    font-weight: 700;
    color: #0b1f33;
    line-height: 1;
}
.daffaq-result-score__label {
    margin: 6px 0 4px;
    font-size: 13px;
    color: #0b2447;
}
.daffaq-result-score__bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 6px;
}
.daffaq-result-score__progress {
    position: absolute;
    inset: 0;
    width: var(--score-progress, 0%);
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    transition: width 0.3s ease;
}
.daffaq-result-score small {
    font-size: 11px;
    color: #475569;
}
.daffaq-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.daffaq-result-card {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px;
    background: #f8fafc;
}
.daffaq-result-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.daffaq-result-card__value {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    color: #0f172a;
}
.daffaq-result-card--alert {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}
.daffaq-result-card--muted {
    opacity: 0.85;
}
.daffaq-result-list {
    margin: 0;
    padding-left: 20px;
    color: #0f172a;
    line-height: 1.5;
}
.daffaq-result-list li + li {
    margin-top: 6px;
}
.daffaq-result-table__scroller {
    overflow-x: auto;
}
.daffaq-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.daffaq-result-table th,
.daffaq-result-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.daffaq-result-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}
.daffaq-result-table tbody tr:last-child td {
    border-bottom: none;
}
.daffaq-result-empty {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}
.daffaq-result-plan__item {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding: 12px 0;
}
.daffaq-result-plan__item:first-of-type {
    border-top: none;
    padding-top: 0;
}
.daffaq-result-plan__item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 6px;
}
.daffaq-result-plan__item p {
    margin: 0;
    color: #0f172a;
}
.daffaq-result-plan__item ul {
    margin: 0;
    padding-left: 18px;
    color: #0f172a;
}
@media (max-width: 720px) {
    .daffaq-result-summary__grid {
        flex-direction: column;
    }
    .daffaq-result-score {
        width: 100%;
    }
    .daffaq-share__actions {
        flex-direction: column;
    }
}
.daffaq-main-lookup__row.is-selected {
    background: rgba(2,112,241,0.04);
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .daffaq-view__chrome {
        padding: 12px;
    }
    .daffaq-view--main .daffaq-view__chrome {
        max-width: 100%;
        padding: 12px;
    }
    .daffaq-main-hero__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .daffaq-main-hero__identity {
        gap: 12px;
    }
    .daffaq-main-hero__logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .daffaq-main-hero__clinic {
        font-size: 18px;
    }
    .daffaq-main-hero__profile {
        gap: 12px;
        width: 100%;
        justify-content: space-between;
    }
    .daffaq-main-panel {
        padding: 18px;
    }
    .daffaq-main-lookup__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .daffaq-main-lookup__actions {
        justify-content: flex-start;
    }
    .daffaq-main-lookup__results {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    /* Keep the table full-width but allow scrolling inside the container on small screens.
       Lower min-width because we'll hide less-important columns on mobile. */
    .daffaq-main-lookup__table {
        width: 100%;
        min-width: 420px;
    }
}

@media (max-width: 480px) {
    body.daffaq-template {
        padding: 18px 5px;
    }
    .daffaq-main-hero__logo {
        width: 48px;
        height: 48px;
    }
    .daffaq-main-hero__clinic {
        font-size: 16px;
    }
    .daffaq-pill-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    .daffaq-main-lookup__table {
        min-width: 480px;
    }
}

/* Mobile: hide less-important columns to improve fit on small screens */
@media (max-width: 768px) {
    .daffaq-main-lookup__table th:nth-child(3),
    .daffaq-main-lookup__table td:nth-child(3),
    .daffaq-main-lookup__table th:nth-child(6),
    .daffaq-main-lookup__table td:nth-child(6) {
        display: none;
    }
    /* Allow table to shrink when columns are hidden */
    .daffaq-main-lookup__table {
        min-width: auto;
    }
}

.daffaq-main-hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #f1f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.daffaq-main-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.daffaq-main-hero__logo-fallback {
    font-size: 28px;
    font-weight: 600;
    color: #0f4c81;
}

.daffaq-main-hero__clinic {
    font-size: 24px;
    font-weight: 700;
    color: #0b2447;
    margin: 0;
}

.daffaq-main-hero__location {
    margin: 4px 0 0;
    font-size: 15px;
    color: #4b5a6b;
}

.daffaq-main-hero__tagline {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b778c;
}

.daffaq-main-panel {
    margin-top: 32px;
    padding: 28px 32px 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 76, 129, 0.08);
}

.daffaq-main-panel__header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #0b2447;
}

.daffaq-main-panel__header p {
    margin: 0;
    color: #4b5a6b;
    font-size: 14px;
}

.daffaq-main-lookup__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.daffaq-main-lookup__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #4b5a6b;
}

.daffaq-main-lookup__field input {
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.daffaq-main-lookup__field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.daffaq-main-lookup__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.daffaq-main-lookup__help {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.daffaq-main-lookup__feedback {
    margin-top: 12px;
    font-size: 13px;
    color: #4b5a6b;
}

.daffaq-main-lookup__feedback.is-error {
    color: #b91c1c;
}

.daffaq-main-lookup__feedback.is-warning {
    color: #b45309;
}

.daffaq-main-lookup.is-loading {
    opacity: 0.6;
}

.daffaq-main-lookup__results {
    margin-top: 20px;
    overflow-x: auto;
}

.daffaq-main-lookup__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.daffaq-main-lookup__table th {
    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #7b8ba4;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.daffaq-main-lookup__table td {
    padding: 12px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.06);
    font-size: 14px;
    color: #0f172a;
}

.daffaq-main-lookup__table tr:last-child td {
    border-bottom: none;
}

.daffaq-main-lookup__placeholder td {
    text-align: center;
    color: #94a3b8;
}

.daffaq-main-hero__profile {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.daffaq-main-hero__doctor {
    text-align: right;
}

.daffaq-main-hero__doctor-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #7b8ba4;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.daffaq-main-hero__doctor-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b2447;
}

.daffaq-main-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.daffaq-pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.daffaq-pill-button--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.daffaq-pill-button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.daffaq-pill-button--ghost {
    background: transparent;
    border: 1px solid rgba(15, 76, 129, 0.2);
    color: #0f4c81;
}

.daffaq-pill-button--ghost:hover {
    border-color: rgba(15, 76, 129, 0.4);
}

.daffaq-pill-button:focus-visible {
    outline: 2px solid #94bfff;
    outline-offset: 2px;
}
.daffaq-header {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 18px 24px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(0, 102, 204, 0.08);
    box-shadow: 0 16px 32px rgba(0, 76, 153, 0.18);
}

.daffaq-header__brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.daffaq-header__logo {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(140deg, #FF9933, #E64D19 70%, #CC1A1A);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
    box-shadow: 0 14px 30px rgba(230, 77, 25, 0.35);
}

.daffaq-header__logo--image {
    background: #FFFFFF;
    border: 1px solid rgba(0, 102, 204, 0.12);
    box-shadow: 0 12px 22px rgba(0, 64, 133, 0.16);
    padding: 4px;
    overflow: hidden;
}

.daffaq-header__logo--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.daffaq-header__titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.daffaq-header__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0B1F33;
}

.daffaq-header__subtitle {
    margin: 0;
    color: #274060;
    font-size: 16px;
}

.daffaq-panel {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 18px 38px rgba(0, 64, 133, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.daffaq-panel > h2 {
    margin: -8px 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    border-radius: 24px;
    background: linear-gradient(130deg, #0066CC 0%, #0099FF 25%, #80D4FF 55%, #FF9933 82%, #E64D19 100%);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 16px 32px rgba(0, 102, 204, 0.22);
}

.daffaq-panel > h2::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

.daffaq-panel__hint {
    margin: 4px 0 18px;
    color: #4B5D75;
    font-size: 15px;
}

.daffaq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.daffaq-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #F3F8FF;
    border: 1px solid rgba(0, 102, 204, 0.18);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.daffaq-field:focus-within {
    border-color: rgba(0, 102, 204, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.18);
    background: #FFFFFF;
}

.daffaq-field__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #274060;
    font-weight: 700;
}

.daffaq-field__note {
    font-size: 12px;
    color: #60748C;
    margin-top: 2px;
}

.daffaq-field input,
.daffaq-field select {
    border: none;
    background: transparent;
    font-size: 15px;
    color: #0B1F33;
    padding: 0;
    min-height: 24px;
}

.daffaq-field input:focus,
.daffaq-field select:focus {
    outline: none;
}

.daffaq-field--static .daffaq-field__value {
    font-size: 15px;
    font-weight: 600;
    color: #0B1F33;
}

.daffaq-field--static input {
    display: none;
}

.daffaq-question {
    border-radius: 18px;
    border: 1px solid rgba(0, 102, 204, 0.08);
    padding: 18px 20px;
    background: #FCFDFF;
    margin-bottom: 16px;
}

.daffaq-question:last-of-type {
    margin-bottom: 0;
}

.daffaq-question__label {
    font-weight: 700;
    font-size: 16px;
    color: #0B1F33;
    margin-bottom: 10px;
}

.daffaq-required {
    color: #CC1A1A;
    margin-left: 6px;
}

.daffaq-question--urgent {
    border-color: rgba(204, 26, 26, 0.25);
    background: linear-gradient(160deg, rgba(255, 204, 51, 0.08), rgba(255, 153, 51, 0.05));
}

.daffaq-question-group {
    margin-bottom: 24px;
    padding: 22px 24px;
    background: #f4f7fb;
    border-radius: 18px;
    border-left: 5px solid #3b82f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.daffaq-question-group__header {
    margin-bottom: 18px;
}

.daffaq-question-group__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0B1F33;
}

.daffaq-question-group__description {
    margin: 6px 0 0;
    color: #51607a;
    font-size: 14px;
    font-style: italic;
}

.daffaq-question-group__items .daffaq-question {
    margin-bottom: 12px;
}

.daffaq-question-group__items .daffaq-question:last-of-type {
    margin-bottom: 0;
}

.daffaq-question--nested {
    background: #ffffff;
    border-color: rgba(0, 102, 204, 0.12);
    box-shadow: 0 1px 2px rgba(0, 51, 102, 0.08);
}

.daffaq-question--nested .daffaq-question__label {
    font-size: 15px;
}

.daffaq-question--nested .daffaq-question__reason {
    font-size: 13px;
}

.daffaq-question__urgent-note {
    margin: 6px 0 12px;
    font-size: 13px;
    color: #CC1A1A;
    font-weight: 600;
}

.daffaq-question__reason {
    margin: 0 0 14px;
    color: #566B89;
    font-size: 14px;
}

.daffaq-question__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.daffaq-question__insight {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.08);
    color: #0B1F33;
    font-size: 13px;
    font-weight: 500;
    display: none;
}

.daffaq-question__insight--active {
    display: block;
}

.daffaq-question__insight--warning {
    background: rgba(231, 76, 60, 0.12);
    color: #8E1515;
}

.daffaq-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 153, 255, 0.35);
    color: #0B1F33;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.daffaq-option input {
    accent-color: #0066CC;
}

.daffaq-option:hover,
.daffaq-option:focus-within {
    border-color: #0066CC;
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.18);
}

.daffaq-inline-guidance {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.daffaq-inline-guidance__badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(130deg, #0066CC 0%, #0099FF 25%, #80D4FF 55%, #FF9933 82%, #E64D19 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.daffaq-inline-guidance__summary {
    margin: 0 0 12px;
    color: #1b2942;
    font-weight: 600;
    font-size: 14px;
}

.daffaq-inline-guidance__section + .daffaq-inline-guidance__section {
    margin-top: 12px;
}

.daffaq-inline-guidance__section h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0b1f33;
}

.daffaq-inline-guidance__section ul {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 13px;
}

.daffaq-inline-guidance__final {
    margin: 14px 0 0;
    font-weight: 600;
    color: #0b1f33;
    font-size: 13px;
}

.daffaq-inline-guidance__footer {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.daffaq-inline-guidance__footer span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 12px;
}

.daffaq-panel--submit {
    background: transparent;
    box-shadow: none;
    border: none;
    margin-top: 36px;
    text-align: center;
}

.daffaq-panel--submit .button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    background: linear-gradient(130deg, #0066CC 0%, #0099FF 25%, #80D4FF 55%, #FF9933 82%, #E64D19 100%);
    color: #FFFFFF;
    box-shadow: 0 26px 44px rgba(0, 102, 204, 0.35);
    width: 100%;
    max-width: 420px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.daffaq-panel--submit .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 52px rgba(0, 102, 204, 0.42);
}

.daffaq-feedback {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-left: 4px solid #0066CC;
    border-radius: 12px;
    background: rgba(0, 153, 255, 0.12);
    color: #0B1F33;
    font-size: 14px;
}

.daffaq-feedback--error {
    border-left-color: #CC1A1A;
    background: rgba(204, 26, 26, 0.12);
    color: #8E1515;
}

.daffaq-feedback--success {
    border-left-color: #1B8E3F;
    background: rgba(27, 142, 63, 0.12);
    color: #1E6235;
}

.daffaq-panel--results {
    background: #FFFFFF;
}

.daffaq-result-summary {
    display: grid;
    gap: 14px;
}

.daffaq-result-summary strong {
    color: #0066CC;
}

.daffaq-result-summary ul {
    margin: 6px 0 0 18px;
    color: #4B5D75;
}

.daffaq-panel--share {
    background: #FFFFFF;
}

.daffaq-panel--share[hidden] {
    display: none !important;
}

.daffaq-panel--share .button {
    width: auto;
    margin-bottom: 0;
    justify-content: center;
    border-radius: 999px;
    padding-left: 20px;
    padding-right: 20px;
}

.daffaq-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: start;
}

.daffaq-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.daffaq-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(130deg, #0066CC 0%, #0099FF 25%, #80D4FF 55%, #FF9933 82%, #E64D19 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 16px 30px rgba(0, 102, 204, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    min-width: 0;
}

.daffaq-share-btn:hover,
.daffaq-share-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 102, 204, 0.3);
}

.daffaq-share-btn[disabled],
.daffaq-share-btn[disabled]:hover {
    background: linear-gradient(130deg, rgba(0, 102, 204, 0.35), rgba(0, 153, 255, 0.35), rgba(255, 153, 51, 0.35));
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.8;
}

.daffaq-share-btn--outline {
    background: #FFFFFF;
    color: #0066CC !important;
    border: 1px solid rgba(0, 102, 204, 0.35);
    box-shadow: 0 10px 22px rgba(0, 76, 153, 0.18);
}

.daffaq-share-btn--outline:hover,
.daffaq-share-btn--outline:focus {
    border-color: #0066CC;
    box-shadow: 0 14px 28px rgba(0, 102, 204, 0.22);
}

.daffaq-share-link {
    word-break: break-all;
    font-size: 13px;
    color: #004C99;
    margin-top: 4px;
    flex-basis: 100%;
}

.daffaq-share-expiry {
    font-size: 12px;
    color: #4B5D75;
    margin: 4px 0 0;
}

.daffaq-share-qr {
    text-align: center;
}

.daffaq-share-qr img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 18px;
    background: #F6FAFF;
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: 0 18px 32px rgba(0, 76, 153, 0.18);
}

.daffaq-message--restricted {
    padding: 18px;
    border: 1px solid rgba(204, 26, 26, 0.25);
    border-radius: 16px;
    background: rgba(204, 26, 26, 0.08);
    color: #8E1515;
    text-align: center;
    font-weight: 600;
}

.daffaq-alert {
    border-radius: 18px;
    padding: 14px 18px;
    margin: 16px 0;
}

.daffaq-alert--urgent {
    background: rgba(204, 26, 26, 0.08);
    border: 1px solid rgba(204, 26, 26, 0.25);
    color: #8E1515;
}

.daffaq-alert--urgent ul {
    margin: 8px 0 0 18px;
}

.daffaq-result-summary__follow {
    margin: 12px 0;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(0, 102, 204, 0.08);
    color: #0B1F33;
    font-weight: 600;
}

@media (max-width: 900px) {
    .daffaq-view__chrome {
        padding: 28px 24px 36px;
    }

    .daffaq-main-hero__card {
        flex-direction: column;
        align-items: flex-start;
    }

    .daffaq-main-hero__profile {
        width: 100%;
        justify-content: space-between;
    }

    .daffaq-main-hero__doctor {
        text-align: left;
    }

    .daffaq-header {
        flex-direction: column;
        align-items: center;
        padding: 22px 20px;
    }

    .daffaq-header__brand {
        flex-direction: column;
        text-align: center;
    }

    .daffaq-main-panel {
        padding: 24px;
    }

    .daffaq-grid {
        grid-template-columns: 1fr;
    }

    .daffaq-panel {
        padding: 22px 20px;
    }

    .daffaq-panel > h2 {
        width: 100%;
        text-align: center;
    }

    .daffaq-panel--submit .button {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    body.daffaq-template {
        padding: 28px 10px;
    }

    .daffaq-view__chrome {
        padding: 24px 16px 28px;
    }

    .daffaq-header__title {
        font-size: 24px;
    }

    .daffaq-header__logo {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        font-size: 12px;
    }

    .daffaq-panel > h2 {
        font-size: 17px;
        padding: 12px 18px;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .daffaq-main-hero__logo {
        width: 64px;
        height: 64px;
    }

    .daffaq-main-hero__clinic {
        font-size: 20px;
    }

    .daffaq-main-hero__profile {
        flex-direction: column;
        gap: 16px;
    }

    .daffaq-main-panel {
        padding: 20px;
    }

    .daffaq-main-lookup__grid {
        grid-template-columns: 1fr;
    }

    .daffaq-question {
        padding: 16px;
    }

    .daffaq-question__options {
        flex-direction: column;
        align-items: flex-start;
    }
    .daffaq-panel--submit {
        padding-left: 12px;
        padding-right: 12px;
    }

    .daffaq-panel--submit .button {
        width: calc(100% - 8px);
        max-width: none;
        margin: 0 auto;
        display: block;
    }

    .daffaq-share-actions {
        flex-direction: column;
        align-items: stretch;
    }

.daffaq-panel--share .button {
    width: 100%;
}

.daffaq-panel--insights {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 18px 38px rgba(0, 64, 133, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.daffaq-panel--insights[hidden] {
    display: none;
}

.daffaq-panel--insights ul {
    margin: 12px 0 0 18px;
    color: #2c3e50;
    line-height: 1.5;
}
}
.daffaq-field__input--locked {
    background: #f4f6f8;
    border-color: #ccd6e2;
    cursor: not-allowed;
}

.daffaq-field--readonly .daffaq-field__label {
    color: #475569;
}
.daffaq-field--readonly .daffaq-field__note {
    color: #5f7086;
}
