/* Section 5: Privacy by Default (imported from 5th.html, scoped) */
.p5-privacy-section {
    position: relative;
    overflow: hidden;
    padding: 32px 4vw 48px;
    isolation: isolate;
}

.p5-halo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(58% 58% at 14% 12%, rgba(255, 155, 245, 0.3) 0%, rgba(255, 155, 245, 0) 62%),
        radial-gradient(50% 50% at 87% 18%, rgba(163, 154, 255, 0.26) 0%, rgba(163, 154, 255, 0) 58%),
        radial-gradient(47% 54% at 45% 92%, rgba(0, 77, 51, 0.16) 0%, rgba(0, 77, 51, 0) 62%);
    animation: p5HaloShift 10s ease-in-out infinite alternate;
}

.p5-blob {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.34;
    pointer-events: none;
    animation: p5BlobFloat 9s ease-in-out infinite alternate;
}

.p5-blob-a {
    top: 34px;
    left: -56px;
    background: rgba(255, 155, 245, 0.82);
}

.p5-blob-b {
    top: -42px;
    right: -74px;
    background: rgba(163, 154, 255, 0.84);
    animation-duration: 11s;
}

.p5-blob-c {
    bottom: -96px;
    left: 34%;
    background: rgba(0, 77, 51, 0.65);
    animation-duration: 10s;
}

@keyframes p5HaloShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(0, -10px, 0) scale(1.03);
    }
}

@keyframes p5BlobFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(12px, -18px, 0) scale(1.06);
    }
}

.p5-privacy-container {
    position: relative;
    z-index: 1;
    max-width: 1800px;
    margin: 0 auto;
}

.p5-head {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}

.p5-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.56);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.p5-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d92525;
}

.p5-head h2 {
    margin-top: 16px;
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0f172a;
}

.p5-head h2 .p5-focus-a { color: #1d4ed8; }
.p5-head h2 .p5-focus-b { color: #0f766e; }

.p5-head p {
    margin-top: 10px;
    font-family: NibPro, Georgia, serif;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.72);
}

.p5-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(480px, 2.5fr);
    gap: 22px;
    align-items: stretch;
}

#p5-left-main-card {
    position: relative;
    border-radius: 22px;
    border: 1.5px solid rgba(241, 234, 208, 0.28);
    padding: 22px 22px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(130% 110% at 0% 100%, rgba(121, 227, 170, 0.16) 0%, rgba(121, 227, 170, 0) 42%),
        radial-gradient(100% 90% at 100% 0%, rgba(101, 214, 159, 0.24) 0%, rgba(101, 214, 159, 0) 48%),
        linear-gradient(152deg, #062b20 0%, #0b4b39 56%, #0f6a4d 100%);
    box-shadow:
        0 22px 52px rgba(0, 34, 24, 0.46),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

#p5-left-main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(211, 255, 229, 0.26) 0%, rgba(211, 255, 229, 0) 34%);
    pointer-events: none;
}

#p5-left-main-card::after {
    content: "";
    position: absolute;
    top: -64px;
    right: -74px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(198, 255, 223, 0.34), rgba(99, 217, 160, 0.26) 58%, rgba(99, 217, 160, 0) 72%);
    filter: blur(42px);
    opacity: 0.62;
    pointer-events: none;
    animation: p5LeftGlowFloat 11s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes p5LeftGlowFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(12px, 10px, 0) scale(1.08);
    }
}

#p5-left-main-card>* {
    position: relative;
    z-index: 1;
}

#p5-left-main-card h3 {
    color: #fff3d6;
    font-size: 1.4rem;
    line-height: 1.15;
    font-weight: 900;
}

#p5-left-main-card p {
    margin-top: 12px;
    color: rgba(255, 240, 212, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.p5-strong {
    color: #fff8e7;
    font-weight: 800;
}

.p5-pill-group {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.p5-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 244, 216, 0.1);
    background: rgba(255, 244, 216, 0.06);
    color: #fff2d3;
    padding: 6px 13px;
    font-size: 0.86rem;
    font-weight: 600;
}

.p5-pill:nth-child(1) {
    background: rgba(77, 232, 144, 0.45);
    border-color: rgba(77, 232, 144, 0.5);
}

.p5-pill:nth-child(2) {
    background: rgba(163, 154, 255, 0.45);
    border-color: rgba(163, 154, 255, 0.5);
}

.p5-pill:nth-child(3) {
    background: rgba(255, 155, 245, 0.45);
    border-color: rgba(255, 155, 245, 0.5);
}

.p5-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.p5-pill-dot.green {
    background: #4de890;
}

.p5-pill-dot.purple {
    background: #a39aff;
}

.p5-pill-dot.pink {
    background: #ff9bf5;
}

.p5-left-cta-wrap {
    margin-top: 16px;
}

.p5-cta {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 13px 22px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #004d33 0%, #063f2f 50%, #0b7a55 100%);
    box-shadow: 0 12px 26px rgba(0, 77, 51, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.p5-cta::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 16px;
    filter: blur(2px);
    background: linear-gradient(120deg, rgba(255, 155, 245, 0) 0%, rgba(255, 155, 245, 0.45) 35%, rgba(163, 154, 255, 0.35) 55%, rgba(255, 155, 245, 0) 80%);
    transform: translateX(-120%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.p5-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 77, 51, 0.3);
}

.p5-cta:hover::before {
    transform: translateX(120%);
}

.p5-left-cta-note {
    margin-top: 9px;
    font-size: 0.82rem;
    color: rgba(255, 240, 212, 0.78);
}

.p5-left-micro-note {
    margin-top: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.62);
}

.p5-right-shell {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 123, 107, 0.22) 0%, rgba(255, 123, 107, 0) 42%),
        radial-gradient(120% 140% at 100% 100%, rgba(255, 184, 107, 0.2) 0%, rgba(255, 184, 107, 0) 50%),
        linear-gradient(145deg, #20110d 0%, #130d0b 52%, #0d0908 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.p5-right-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 6, 5, 0.78) 0%, rgba(8, 6, 5, 0) 14%, rgba(8, 6, 5, 0) 86%, rgba(8, 6, 5, 0.74) 100%);
}

.p5-right-header {
    position: relative;
    z-index: 2;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 123, 107, 0.16), rgba(255, 184, 107, 0.1), rgba(255, 255, 255, 0.04));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.p5-right-eyebrow {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 600;
}

.p5-right-title {
    margin-top: 2px;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 800;
}

.p5-always-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 245, 230, 0.92);
    padding: 7px 11px;
    font-size: 0.75rem;
    font-weight: 700;
}

.p5-always-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffb86b;
}

#p5-privacy-slider {
    position: relative;
    z-index: 2;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#p5-privacy-slider::before,
#p5-privacy-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    pointer-events: none;
    z-index: 10;
}

#p5-privacy-slider::before {
    left: 0;
    background: linear-gradient(90deg, rgba(16, 10, 8, 1), rgba(16, 10, 8, 0));
}

#p5-privacy-slider::after {
    right: 0;
    background: linear-gradient(270deg, rgba(16, 10, 8, 1), rgba(16, 10, 8, 0));
}

#p5-privacy-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 18px 18px 24px;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    flex: 1;
    /* Stretch to fill slider */
    min-height: 100%;
    /* Ensure full height */
}

.p5-slide-item {
    flex: 0 0 auto;
    width: 340px;
    /* Fixed narrower width */
}

.p5-glass-card {
    position: relative;
    height: 100%;
    border-radius: 18px;
    padding: 20px 20px;
    overflow: hidden;
    color: rgba(255, 245, 230, 0.96);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.p5-glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.8px, transparent 0.8px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
}

.p5-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 54px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.p5-color-splash {
    position: absolute;
    top: -62px;
    right: -66px;
    width: 188px;
    height: 188px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ff7b6b, #ffb86b 60%, transparent 70%);
    opacity: 0.33;
    filter: blur(52px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.p5-name {
    position: relative;
    z-index: 1;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

.p5-name span {
    display: block;
    background: linear-gradient(120deg, #fff2cc, #ffd699, #fff2cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.p5-role {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 230, 210, 0.72);
    font-weight: 600;
}

.p5-divider {
    position: relative;
    z-index: 1;
    margin: 16px 0 10px;
    height: 1px;
    opacity: 0.22;
    background: linear-gradient(to right, transparent, #fff, transparent);
}

.p5-accent-dot {
    position: relative;
    z-index: 1;
    width: 6px;
    height: 6px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7b6b, #ffb86b);
    opacity: 0.8;
}

.p5-info {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 11px;
}

.p5-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: rgba(255, 230, 210, 0.74);
}

.p5-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: url(#p5-privacy-accent-gradient);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.72;
}

.p5-watermark {
    position: absolute;
    right: -8px;
    bottom: -14px;
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-8deg);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.p5-right-footer {
    position: relative;
    z-index: 2;
    padding: 0 18px 14px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
#p5-modal.p5-hidden {
    display: none;
}

#p5-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
}

#p5-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.p5-modal-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#p5-modal-dialog {
    width: 100%;
    max-width: 760px;
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    background: #f0e6cb;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.p5-modal-head {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(0, 77, 51, 0.16), rgba(163, 154, 255, 0.16), rgba(255, 155, 245, 0.14));
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.p5-modal-head h3 {
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.1;
    font-weight: 900;
}

.p5-modal-head p {
    margin-top: 5px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
}

#p5-close-modal {
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    padding: 6px;
}

#p5-close-modal:hover {
    background: rgba(0, 0, 0, 0.06);
}

.p5-form {
    padding: 24px;
}

.p5-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.p5-form-field {
    display: grid;
    gap: 7px;
}

.p5-form-field.full {
    grid-column: 1 / -1;
}

.p5-form-field span {
    font-size: 0.86rem;
    font-weight: 700;
}

.p5-input,
.p5-select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.68);
    padding: 11px 13px;
    font-family: inherit;
    font-size: 0.95rem;
}

.p5-input:focus,
.p5-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(163, 154, 255, 0.6);
}

.p5-consent-row {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.p5-consent-row label {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.72);
    line-height: 1.45;
}

.p5-form-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.p5-secondary-btn {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.68);
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.p5-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.84);
}

.p5-success {
    margin-top: 16px;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(0, 77, 51, 0.18);
    background: rgba(0, 77, 51, 0.08);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.p5-success.p5-hidden {
    display: none;
}

.p5-success-icon {
    border-radius: 12px;
    border: 1px solid rgba(0, 77, 51, 0.18);
    background: rgba(0, 77, 51, 0.1);
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.p5-success-title {
    font-size: 1rem;
    font-weight: 900;
}

.p5-success-text {
    margin-top: 3px;
    font-size: 0.84rem;
    color: rgba(0, 0, 0, 0.72);
}

/* Small modal animations */
.p5-modal-enter {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.p5-modal-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.p5-modal-leave {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.p5-modal-leave-active {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1200px) {
    .p5-slide-item {
        width: 72%;
    }
}

@media (max-width: 1024px) {
    .p5-grid {
        grid-template-columns: 1fr;
    }

    .p5-right-shell,
    #p5-left-main-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .p5-slide-item {
        width: 80%;
    }
}

@media (max-width: 760px) {
    .p5-privacy-section {
        padding: 48px 1rem 40px;
    }

    .p5-right-header {
        padding: 14px;
    }

    .p5-right-title {
        font-size: 0.98rem;
    }

    .p5-slide-item {
        width: 88%;
    }

    .p5-glass-card {
        padding: 20px 18px;
    }

    .p5-name {
        font-size: 1.5rem;
    }

    .p5-watermark {
        font-size: 50px;
    }

    .p5-form-grid {
        grid-template-columns: 1fr;
    }

    .p5-form-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .p5-halo,
    .p5-blob,
    #p5-left-main-card::after {
        animation: none !important;
    }

    .p5-cta,
    .p5-cta::before,
    .p5-glass-card,
    .p5-modal-enter-active,
    .p5-modal-leave-active {
        transition: none !important;
    }

    #p5-privacy-track {
        transform: none !important;
    }
}