:root {
    --ink: #172033;
    --muted: #667085;
    --line: #dce4ea;
    --surface: #ffffff;
    --soft: #f4f7f8;
    --brand: #087f73;
    --brand-dark: #055e56;
    --accent: #f4b942;
    --danger: #b42318;
    --shadow: 0 20px 55px rgba(23, 32, 51, 0.13);
    --soft-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
}

* {
    box-sizing: border-box;
}

body.ppq-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #eef8f6 0, #f8fafb 420px, var(--soft) 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ppq-page a {
    color: inherit;
}

.ppq-page header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 14px clamp(18px, 4vw, 58px);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(220, 228, 234, 0.86);
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
    backdrop-filter: blur(18px);
    text-align: left;
}

.ppq-page header .logo {
    display: inline-flex;
    align-items: center;
}

.ppq-page header .logo:first-child {
    margin-right: -8px;
}

.ppq-page header .logo a {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-size: 20px;
    font-weight: 850;
    text-decoration: none;
}

.ppq-page header .logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(8, 127, 115, 0.18));
}

.ppq-page nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.ppq-page nav a {
    margin: 0;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ppq-page nav a:hover {
    color: var(--brand-dark);
    background: rgba(8, 127, 115, 0.08);
}

.ppq-page #logoutButton,
.ppq-page #dashboardLink {
    color: #fff;
    background: var(--ink);
}

.ppq-page #logoutButton:hover,
.ppq-page #dashboardLink:hover {
    color: #fff;
    background: var(--brand-dark);
}

.ppq-main,
.ppq-page main,
.ppq-page .content,
.ppq-page .dashboard,
.ppq-page .bg-white > .container {
    width: min(1120px, calc(100% - 34px));
    margin: 34px auto 54px;
}

.ppq-page main,
.ppq-page .details-card,
.ppq-page .bg-white > .container {
    border: 1px solid rgba(220, 228, 234, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.ppq-page main {
    max-width: 840px;
    padding: clamp(24px, 4vw, 42px);
}

.ppq-page .contact-form {
    margin: 0;
}

.ppq-page h1 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    font-weight: 900;
}

.ppq-page h2 {
    margin: 26px 0 10px;
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 850;
}

.ppq-page p,
.ppq-page li {
    color: var(--muted);
    line-height: 1.68;
}

.ppq-page .form-group {
    margin-bottom: 16px;
}

.ppq-page label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.ppq-page input,
.ppq-page textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease;
}

.ppq-page textarea {
    min-height: 130px;
    resize: vertical;
}

.ppq-page input:focus,
.ppq-page textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.13);
}

.ppq-page button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 19px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 14px 28px rgba(8, 127, 115, 0.22);
    cursor: pointer;
    font-size: 15px;
    font-weight: 850;
    transition: background 160ms ease, transform 160ms ease;
}

.ppq-page button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.ppq-page .success-message {
    padding: 12px 14px;
    border-radius: 7px;
    color: #05603a;
    background: #ecfdf3;
    font-weight: 850;
}

.ppq-page .error-messages,
.ppq-page #error-message {
    padding: 12px 14px;
    border-radius: 7px;
    color: var(--danger);
    background: #fff1f0;
    font-weight: 850;
}

.ppq-page .bg-white {
    background: transparent !important;
    color: var(--ink) !important;
}

.ppq-page .bg-white > .container {
    max-width: 980px;
    padding: clamp(24px, 4vw, 44px) !important;
}

.ppq-page .bg-white h1 {
    color: var(--ink) !important;
}

.ppq-page .bg-white h2 {
    color: var(--brand-dark) !important;
}

.ppq-page .bg-white ul {
    margin: 0 0 10px 20px;
    padding: 0;
}

.ppq-page .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
    justify-content: stretch;
}

.ppq-page .dashboard-shell {
    max-width: none;
}

.ppq-page .dashboard-heading {
    margin-bottom: 24px;
}

.ppq-page .dashboard-heading .eyebrow {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.ppq-page .dashboard-heading p:last-child {
    max-width: 660px;
    margin: 0;
}

.ppq-page .dashboard-empty {
    grid-column: 1 / -1;
    padding: 26px;
    border: 1px dashed #cfd8e3;
    border-radius: 8px;
    color: var(--muted);
    background: #fbfcfe;
    font-weight: 850;
    text-align: center;
}

.ppq-page .dashboard table {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.ppq-page .dashboard th,
.ppq-page .dashboard td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    text-align: left;
    vertical-align: top;
}

.ppq-page .dashboard th {
    color: var(--ink);
    background: #f4f7f8;
    font-weight: 850;
}

.ppq-page .dashboard .actions {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppq-page .dashboard .actions a {
    color: var(--brand-dark);
    font-weight: 850;
    text-decoration: none;
}

.ppq-page .row {
    width: auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(220, 228, 234, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.ppq-page .info {
    padding: 20px;
    text-align: left;
}

.ppq-page .user-qr img {
    display: block;
    max-width: 180px;
    margin: 0 auto 16px;
}

.ppq-page .title {
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
}

.ppq-page .other-details,
.ppq-page .date,
.ppq-page .status,
.ppq-page .share {
    color: var(--muted);
    line-height: 1.55;
}

.ppq-page .content {
    display: block;
    padding: 0;
}

.ppq-page .details-card {
    width: 100%;
    padding: clamp(20px, 4vw, 34px);
}

.ppq-page .qr-instructions {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(8, 127, 115, 0.08);
}

.ppq-page .qr-instructions p {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 850;
}

.ppq-page .share-url-panel {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.ppq-page .share-url-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.ppq-page .share-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.ppq-page .share-url-row input {
    min-height: 46px;
    margin: 0;
}

.ppq-page .share-url-row a,
.ppq-page .share-url-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 15px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 22px rgba(8, 127, 115, 0.18);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.ppq-page .share-url-row a:hover,
.ppq-page .share-url-row button:hover {
    color: #fff;
    background: var(--brand-dark);
}

.ppq-page .details-table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.ppq-page .details-table th,
.ppq-page .details-table td {
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.ppq-page .details-table th {
    color: var(--ink);
    background: #f4f7f8;
    font-weight: 850;
}

.ppq-page .details-table td {
    color: var(--muted);
}

.ppq-page .map-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 18px;
    align-items: stretch;
}

.ppq-page #map {
    width: 100%;
    min-height: 400px;
    margin: 0;
    border-radius: 8px;
    background: #dbe8f0;
}

.ppq-page .leaflet-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.ppq-page .leaflet-pane,
.ppq-page .leaflet-tile,
.ppq-page .leaflet-marker-icon,
.ppq-page .leaflet-marker-shadow,
.ppq-page .leaflet-tile-container,
.ppq-page .leaflet-pane > svg,
.ppq-page .leaflet-pane > canvas,
.ppq-page .leaflet-zoom-box,
.ppq-page .leaflet-image-layer,
.ppq-page .leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.ppq-page .leaflet-tile,
.ppq-page .leaflet-marker-icon,
.ppq-page .leaflet-marker-shadow {
    user-select: none;
}

.ppq-page .leaflet-pin-marker {
    width: 40px;
    height: 52px;
}

.ppq-page .leaflet-pin-marker::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 28px;
    height: 28px;
    border: 8px solid var(--brand);
    border-radius: 50% 50% 50% 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(5, 94, 86, 0.28);
    transform: rotate(-45deg);
}

.ppq-page .leaflet-pin-marker::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.ppq-page .leaflet-control-container .leaflet-top,
.ppq-page .leaflet-control-container .leaflet-bottom {
    position: absolute;
    z-index: 800;
    pointer-events: none;
}

.ppq-page .leaflet-top {
    top: 0;
}

.ppq-page .leaflet-bottom {
    bottom: 0;
}

.ppq-page .leaflet-left {
    left: 0;
}

.ppq-page .leaflet-right {
    right: 0;
}

.ppq-page .leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
}

.ppq-page .leaflet-top .leaflet-control {
    margin-top: 10px;
}

.ppq-page .leaflet-left .leaflet-control {
    margin-left: 10px;
}

.ppq-page .leaflet-control-zoom a {
    display: block;
    width: 28px;
    height: 28px;
    border-bottom: 1px solid #ccc;
    color: #172033;
    background: #fff;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
}

.ppq-page .leaflet-control-attribution {
    padding: 2px 6px;
    color: #667085;
    background: rgba(255, 255, 255, 0.86);
    font-size: 11px;
}

.ppq-page #qr-code-image {
    width: 100%;
    max-width: 320px;
    max-height: none;
    align-self: center;
    justify-self: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.ppq-page .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.ppq-page .buttons button {
    margin: 0;
}

.ppq-page footer {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-top: auto;
    padding: 22px clamp(18px, 4vw, 58px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    font-size: 14px;
    text-align: left;
}

.ppq-page .footer-left {
    margin: 0;
    color: var(--muted);
}

.ppq-page .footer-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.ppq-page .footer-right a,
.ppq-page footer a {
    margin: 0 !important;
    padding: 9px 10px !important;
    border-radius: 7px;
    color: var(--muted) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    text-decoration: none;
}

.ppq-page .footer-right a:hover,
.ppq-page footer a:hover {
    color: var(--brand-dark) !important;
    background: rgba(8, 127, 115, 0.08);
    text-decoration: none;
}

@media (max-width: 760px) {
    .ppq-page footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ppq-page header {
        align-items: center;
        flex-wrap: wrap;
    }

    .ppq-page nav {
        width: 100%;
        margin-left: 0;
    }

    .ppq-page h1 {
        font-size: 36px;
    }

    .ppq-page .map-container {
        grid-template-columns: 1fr;
    }

    .ppq-page #qr-code-image {
        max-width: 240px;
    }

    .ppq-page .details-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .ppq-page .share-url-row {
        grid-template-columns: 1fr;
    }

    .ppq-page .buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .ppq-page .buttons button {
        width: 100%;
    }
}
