/* Dream Planners Group — Premium Design System */
/* Matches https://dreamplanners.netlify.app/ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700;800&display=swap');

:root {
    --navy: #1a2472;
    --navy-dark: #111850;
    --blue: #2563eb;
    --blue-mid: #3b5bdb;
    --gold: #b8952a;
    --gold-light: #d4a940;
    --gold-pale: #f0e0a8;
    --cream: #f7f4ee;
    --white: #ffffff;
    --text: #1c1c2e;
    --muted: #6b6b7e;
    --border: #e2ddd4;

    /* Premium additions */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 2px 8px rgba(26, 36, 114, 0.04);
    --shadow-md: 0 8px 32px rgba(26, 36, 114, 0.08);
    --shadow-lg: 0 16px 48px rgba(26, 36, 114, 0.12);
    --shadow-xl: 0 24px 64px rgba(26, 36, 114, 0.16);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* Premium heading font */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ===== SCROLL PROGRESS BAR ===== */
.dpg-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold-pale));
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(184, 149, 42, 0.5);
}

/* ===== CUSTOM CURSOR ===== */
.dpg-cursor {
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out), opacity 0.15s;
    opacity: 0.7;
}
.dpg-cursor.active {
    transform: scale(2.5);
    opacity: 0.4;
}

/* ===== NAV ===== */
.dpg-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 72px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(184, 149, 42, 0.4), var(--gold), rgba(184, 149, 42, 0.4), transparent) 1;
    box-shadow: var(--shadow-sm);
    transition: height 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth),
                background 0.4s var(--ease-smooth);
}
.dpg-nav.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 30px rgba(26, 36, 114, 0.12);
}
.dpg-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.dpg-nav-logo img {
    height: 42px;
    object-fit: contain;
    transition: height 0.4s var(--ease-smooth);
}
.dpg-nav.scrolled .dpg-nav-logo img { height: 36px; }

.dpg-nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.dpg-nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease-smooth);
    padding-bottom: 4px;
    position: relative;
}
.dpg-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s var(--ease-out);
    border-radius: 1px;
}
.dpg-nav-links a:hover::after,
.dpg-nav-links a.active::after {
    width: 100%;
}
.dpg-nav-links a:hover { color: var(--gold); }
.dpg-nav-links a.active { color: var(--gold); }

.dpg-nav-agent-login {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease-smooth);
    margin-right: 4px;
}
.dpg-nav-agent-login:hover { color: var(--navy); }

.dpg-nav-cta {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s var(--ease-out);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(184, 149, 42, 0.25);
}
.dpg-nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.dpg-nav-cta:hover::before { left: 100%; }
.dpg-nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(184, 149, 42, 0.35);
}

/* ===== HAMBURGER ===== */
.dpg-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 300;
}
.dpg-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 0;
    transition: all 0.35s var(--ease-out);
    border-radius: 1px;
}
.dpg-hamburger span:nth-child(1) { top: 0; }
.dpg-hamburger span:nth-child(2) { top: 9px; }
.dpg-hamburger span:nth-child(3) { top: 18px; }
.dpg-hamburger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.dpg-hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.dpg-hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ===== MOBILE NAV ===== */
.dpg-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(184, 149, 42, 0.4), transparent) 1;
    box-shadow: 0 12px 40px rgba(26, 36, 114, 0.1);
    padding: 8px 5vw 20px;
    z-index: 199;
    flex-direction: column;
    gap: 0;
}
.dpg-mobile-menu.open { display: flex; }
.dpg-mobile-menu a {
    color: var(--navy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid rgba(226, 221, 212, 0.5);
    transition: all 0.3s var(--ease-smooth);
}
.dpg-mobile-menu a:last-child { border-bottom: none; }
.dpg-mobile-menu a:hover { color: var(--gold); padding-left: 8px; }
.dpg-mobile-menu a.active { color: var(--gold); }

.dpg-nav-back {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.3s var(--ease-smooth);
}
.dpg-nav-back:hover { color: var(--gold); }

/* ===== BREADCRUMB ===== */
.dpg-breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--muted);
}
.dpg-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}
.dpg-breadcrumb a:hover { color: var(--gold-light); }
.dpg-breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ===== HERO ===== */
.dpg-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5vw 80px;
    position: relative;
    overflow: hidden;
}
.dpg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(184, 149, 42, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    z-index: 0;
}
.dpg-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(184, 149, 42, 0.08) 0%, transparent 100%);
    z-index: 0;
}
.dpg-hero > * { position: relative; z-index: 1; }

.dpg-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    animation: heroFloat 6s ease-in-out infinite;
}
.dpg-hero h1 em {
    font-style: normal;
    color: var(--gold-pale);
    position: relative;
}
.dpg-hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-pale));
    border-radius: 2px;
    opacity: 0.6;
}
.dpg-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Hero floating animation */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll indicator */
.dpg-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.dpg-scroll-indicator::after {
    content: '';
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ===== CONTAINER ===== */
.dpg-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 80px 32px;
}

/* ===== SECTION LABEL ===== */
.dpg-section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* ===== CARDS ===== */
.dpg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.dpg-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 221, 212, 0.6);
    border-top: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.dpg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 149, 42, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}
.dpg-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(26, 36, 114, 0.12),
                0 0 0 1px rgba(184, 149, 42, 0.15);
    border-top-color: var(--gold);
    border-color: rgba(184, 149, 42, 0.2);
    background: rgba(255, 255, 255, 0.85);
}
.dpg-card:hover::before { opacity: 1; }

.dpg-card-icon { font-size: 2rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.dpg-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}
.dpg-card-desc {
    font-size: 0.92rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.dpg-card-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    transition: color 0.3s, gap 0.3s;
    position: relative;
    z-index: 1;
}
.dpg-card:hover .dpg-card-btn { color: var(--gold-light); }
.dpg-card-btn .arrow {
    margin-left: 0.35rem;
    transition: transform 0.35s var(--ease-out);
}
.dpg-card:hover .dpg-card-btn .arrow { transform: translateX(5px); }

/* ===== CONTENT SECTIONS ===== */
.dpg-section {
    background: var(--white);
    border: 1px solid rgba(226, 221, 212, 0.6);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease-smooth);
}
.dpg-section:hover {
    box-shadow: var(--shadow-md);
}
.dpg-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dpg-section-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    box-shadow: 0 0 8px rgba(184, 149, 42, 0.4);
}

/* ===== FORM ===== */
.dpg-form { margin-top: 28px; }
.dpg-form-group { margin-bottom: 20px; }
.dpg-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.dpg-form-label small { font-weight: 400; color: var(--muted); }
.dpg-form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.dpg-form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 42, 0.1);
}
.dpg-form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b6b7e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}
.dpg-form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 42, 0.1);
}
.dpg-form-radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.dpg-form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}
.dpg-form-radio input[type="radio"] { accent-color: var(--gold); }

/* ===== BUTTONS ===== */
.dpg-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(184, 149, 42, 0.25);
}
.dpg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    transition: left 0.6s var(--ease-smooth);
}
.dpg-btn:hover::before { left: 100%; }
.dpg-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184, 149, 42, 0.35);
}
.dpg-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(184, 149, 42, 0.2);
}

.dpg-btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}
.dpg-btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 4px 16px rgba(184, 149, 42, 0.1);
    transform: translateY(-2px);
}

/* ===== FIELD ROW ===== */
.dpg-field-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.dpg-field-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--muted);
}
.dpg-field-label small {
    display: block;
    font-size: 0.8rem;
    color: var(--border);
    margin-top: 2px;
}
.dpg-field-input {
    width: 160px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    text-align: right;
    outline: none;
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.dpg-field-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 42, 0.1);
}
.dpg-field-computed {
    width: 160px;
    padding: 12px 16px;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.dpg-computed-green { background: rgba(34, 150, 80, 0.08); color: #1a8a4a; }
.dpg-computed-red { background: rgba(200, 50, 50, 0.08); color: #c43232; }

/* ===== SUMMARY ===== */
.dpg-summary {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 28px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.dpg-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
}
.dpg-summary-row.total {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    margin-top: 14px;
    padding-top: 18px;
    font-size: 1.3rem;
    font-weight: 700;
}
.dpg-summary-label { color: rgba(255, 255, 255, 0.6); }
.dpg-summary-value { font-weight: 600; }
.dpg-text-green { color: #4ade80; }
.dpg-text-red { color: #f87171; }
.dpg-text-gold { color: var(--gold-pale); }

/* ===== TABS ===== */
.dpg-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border);
}
.dpg-tab {
    padding: 14px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s var(--ease-smooth);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.03em;
}
.dpg-tab:hover { color: var(--navy); }
.dpg-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== CHECKLIST ===== */
.dpg-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 221, 212, 0.5);
}
.dpg-checklist-item:last-child { border-bottom: none; }
.dpg-checklist-item input[type="checkbox"] { accent-color: var(--gold); margin-top: 3px; }
.dpg-checklist-text { font-size: 0.9rem; color: var(--text); }

/* ===== PROGRESS BAR ===== */
.dpg-progress-bg {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}
.dpg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.5s var(--ease-out);
}

/* ===== GAP BAR ===== */
.dpg-gap-bar-container { margin-bottom: 20px; }
.dpg-gap-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.dpg-gap-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}
.dpg-gap-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s var(--ease-out);
}
.dpg-gap-bar-fill.covered { background: linear-gradient(90deg, #1a8a4a, #22c55e); }
.dpg-gap-bar-fill.gap { background: linear-gradient(90deg, #c43232, #ef4444); }

/* ===== COMPARISON TABLE ===== */
.dpg-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.dpg-compare-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
}
.dpg-compare-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(226, 221, 212, 0.5);
    color: var(--text);
    transition: background 0.3s;
}
.dpg-compare-table tr:hover td { background: rgba(184, 149, 42, 0.04); }

/* ===== BADGE ===== */
.dpg-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(184, 149, 42, 0.25);
}

/* ===== TESTIMONIAL ===== */
.dpg-testimonial {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    margin-bottom: 0;
    border-left: none;
    border: 1px solid rgba(226, 221, 212, 0.5);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}
.dpg-testimonial::before {
    content: '\201C';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(184, 149, 42, 0.12);
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 0;
    pointer-events: none;
}
.dpg-testimonial::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold-pale));
}
.dpg-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.dpg-testimonial p {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.dpg-testimonial cite {
    font-size: 0.82rem;
    color: var(--gold);
    font-style: normal;
    font-weight: 600;
    margin-top: 16px;
    display: block;
    position: relative;
    z-index: 1;
}

/* ===== FAQ ===== */
.dpg-faq-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(226, 221, 212, 0.5);
}
.dpg-faq-q {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.dpg-faq-a {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== STEPS ===== */
.dpg-steps {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.dpg-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 28px;
}
.dpg-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(26, 36, 114, 0.2);
}
.dpg-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.dpg-step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ===== THANK YOU ===== */
.dpg-thankyou {
    text-align: center;
    padding: 56px 28px;
    background: var(--cream);
    border-radius: var(--radius-md);
}
.dpg-thankyou h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 12px;
}
.dpg-thankyou p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

/* ===== FOOTER ===== */
.dpg-footer {
    text-align: center;
    padding: 64px 32px 48px;
    background: var(--navy-dark);
    margin-top: 0;
    border-top: none;
    position: relative;
}
.dpg-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--gold), var(--gold-light), var(--gold-pale), var(--gold), transparent 95%);
}
.dpg-footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}
.dpg-footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}
.dpg-footer-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 8px;
}
.dpg-footer a {
    color: var(--gold-pale) !important;
    transition: color 0.3s;
}
.dpg-footer a:hover { color: var(--gold-light) !important; }

/* ===== ALERT ===== */
.dpg-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.dpg-alert-info {
    background: rgba(37, 99, 235, 0.06);
    color: var(--blue);
    border: 1px solid rgba(37, 99, 235, 0.12);
}
.dpg-alert-success {
    background: rgba(26, 138, 74, 0.06);
    color: #1a8a4a;
    border: 1px solid rgba(26, 138, 74, 0.12);
}

/* ===== TRUST BAR ===== */
.dpg-trust-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    padding: 52px 32px;
    background: var(--white);
    border-bottom: 1px solid rgba(226, 221, 212, 0.5);
}
.dpg-trust-item { text-align: center; }
.dpg-trust-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    position: relative;
    display: inline-block;
}
.dpg-trust-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}
.dpg-trust-label {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 10px;
    letter-spacing: 0.03em;
}

/* ===== CTA BANNER ===== */
.dpg-cta-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a8a 100%);
    background-size: 200% 200%;
    animation: ctaGradientShift 8s ease-in-out infinite;
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
@keyframes ctaGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.dpg-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(184, 149, 42, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}
.dpg-cta-banner > * { position: relative; z-index: 1; }
.dpg-cta-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.dpg-cta-banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== SCROLL ANIMATIONS ===== */
.dpg-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.dpg-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered direction: odd sections from left, even from right */
.dpg-fade-in:nth-child(odd) {
    transform: translateX(-30px) translateY(20px);
}
.dpg-fade-in:nth-child(even) {
    transform: translateX(30px) translateY(20px);
}
.dpg-fade-in.visible:nth-child(odd),
.dpg-fade-in.visible:nth-child(even) {
    transform: translateX(0) translateY(0);
}

/* ===== ICON CIRCLE ===== */
.dpg-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 36, 114, 0.07), rgba(184, 149, 42, 0.09));
    border: 1px solid rgba(184, 149, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.35s var(--ease-out);
    color: var(--navy);
    flex-shrink: 0;
}
.dpg-icon-circle svg {
    width: 26px;
    height: 26px;
    stroke: var(--navy);
    stroke-width: 1.75;
    flex-shrink: 0;
}
.dpg-card:hover .dpg-icon-circle,
.dpg-why-item:hover .dpg-icon-circle {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(26, 36, 114, 0.1), rgba(184, 149, 42, 0.15));
    box-shadow: 0 4px 18px rgba(184, 149, 42, 0.18);
    border-color: rgba(184, 149, 42, 0.25);
}

/* ===== DIVIDER ===== */
.dpg-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 20px auto;
}

/* ===== STAT HIGHLIGHT ===== */
.dpg-stat-highlight {
    background: linear-gradient(135deg, rgba(184, 149, 42, 0.04), rgba(26, 36, 114, 0.03));
    border: 1px solid rgba(226, 221, 212, 0.5);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.4s var(--ease-out);
}
.dpg-stat-highlight:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.dpg-stat-highlight .number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.dpg-stat-highlight .label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px;
}

/* ===== WHY SECTION ===== */
.dpg-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    margin: 28px 0;
}
.dpg-why-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 221, 212, 0.5);
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out);
}
.dpg-why-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 149, 42, 0.2);
}
.dpg-why-icon { font-size: 2rem; margin-bottom: 14px; }
.dpg-why-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.dpg-why-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ===== TESTIMONIAL GRID ===== */
.dpg-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

/* ===== PLACEHOLDER IMAGE ===== */
.dpg-placeholder-img {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a8a 100%);
    border-radius: var(--radius-md);
    margin: 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
}
.dpg-placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.6s var(--ease-out);
}
.dpg-placeholder-img:hover img {
    transform: scale(1.03);
}
.dpg-placeholder-img.short { height: 200px; }
.dpg-placeholder-img.tall { height: 360px; }

/* Image reveal animation */
.dpg-fade-in .dpg-placeholder-img {
    clip-path: inset(4% 4% 4% 4% round var(--radius-md));
    transition: clip-path 0.8s var(--ease-out);
}
.dpg-fade-in.visible .dpg-placeholder-img {
    clip-path: inset(0% 0% 0% 0% round var(--radius-md));
}

/* General image styling */
img {
    border-radius: var(--radius-sm);
}

/* ===== FEATURE GRID ===== */
.dpg-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin: 28px 0;
}
.dpg-feature-item {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
}
.dpg-feature-item:hover {
    background: var(--white);
    border-color: rgba(184, 149, 42, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.dpg-feature-icon { font-size: 2rem; margin-bottom: 10px; }
.dpg-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.dpg-feature-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ===== CULTURE GRID IMAGES ===== */
/* For the inline-styled culture grid on homepage */
.dpg-culture-grid img {
    transition: transform 0.5s var(--ease-out);
}
.dpg-culture-grid > div:hover img {
    transform: scale(1.05);
}

/* ===== ALTERNATING SECTION BACKGROUNDS ===== */
.dpg-container:nth-child(even of .dpg-container) {
    position: relative;
}
.dpg-container:nth-child(even of .dpg-container)::before {
    content: '';
    position: absolute;
    inset: -40px -50vw;
    background: linear-gradient(180deg, rgba(26, 36, 114, 0.015) 0%, rgba(184, 149, 42, 0.02) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(184, 149, 42, 0.2);
    color: var(--navy-dark);
}

/* ===== LINK TRANSITIONS ===== */
a {
    transition: color 0.3s var(--ease-smooth);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dpg-nav-links { display: none; }
    .dpg-nav-cta { display: none; }
    .dpg-hamburger { display: block; }
    .dpg-card-grid { grid-template-columns: 1fr; }
    .dpg-hero {
        padding: 100px 24px 60px;
        min-height: 85vh;
    }
    .dpg-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .dpg-container { padding: 56px 20px; }
    .dpg-steps { flex-direction: column; }
    .dpg-field-row { flex-direction: column; align-items: stretch; }
    .dpg-field-input, .dpg-field-computed { width: 100%; text-align: left; }
    .dpg-nav { padding: 0 16px; }
    .dpg-section { padding: 28px 20px; }
    .dpg-trust-bar {
        gap: 32px;
        padding: 40px 24px;
    }
    .dpg-trust-number { font-size: 2.25rem; }
    .dpg-why-grid { grid-template-columns: 1fr 1fr; }
    .dpg-testimonials-grid { grid-template-columns: 1fr; }
    .dpg-culture-grid { grid-template-columns: 1fr !important; }
    .dpg-cta-banner { padding: 48px 24px; }
    .dpg-cta-banner h2 { font-size: 1.4rem; }
    .dpg-footer { padding: 48px 24px 36px; }
    .dpg-form-radio-group { flex-direction: column; gap: 10px; }
    .dpg-tc-expand.open { max-height: 1400px; }

    /* Simplify animations on mobile */
    .dpg-fade-in:nth-child(odd),
    .dpg-fade-in:nth-child(even) {
        transform: translateY(30px);
    }
    .dpg-fade-in.visible:nth-child(odd),
    .dpg-fade-in.visible:nth-child(even) {
        transform: translateY(0);
    }

    /* Hide custom cursor on touch devices */
    .dpg-cursor { display: none; }
}

@media (max-width: 480px) {
    .dpg-container { padding: 44px 16px; }
    .dpg-hero { min-height: 75vh; padding: 90px 20px 50px; }
    .dpg-trust-bar { gap: 24px; }
    .dpg-trust-number { font-size: 1.85rem; }
    .dpg-why-grid { grid-template-columns: 1fr; gap: 16px; }
    .dpg-card { padding: 1.5rem; }
    .dpg-section { padding: 24px 16px; }
    .dpg-cta-banner { padding: 36px 20px; border-radius: var(--radius-md); }
    .dpg-testimonial { padding: 24px 20px; }
    .dpg-summary { padding: 28px 20px; }
    .dpg-btn { width: 100%; text-align: center; display: block; }
    .dpg-form-input, .dpg-form-select { font-size: 16px; } /* prevent iOS zoom */
    .dpg-consent-wrap { gap: 10px; }
    .dpg-footer-note { font-size: 0.75rem; }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1200px) {
    .dpg-container {
        max-width: 1100px;
        padding: 96px 40px;
    }
    .dpg-hero h1 { font-size: 3.5rem; }
    .dpg-trust-number { font-size: 3.5rem; }
}

/* ===== PDPA CONSENT ===== */
.dpg-consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #F7F8FC;
    border: 1px solid #DDE3F0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}
.dpg-consent-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
    margin-top: 2px;
}
.dpg-consent-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}
.dpg-consent-label a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.dpg-consent-error {
    display: none;
    font-size: 12px;
    color: #C0392B;
    font-weight: 500;
    margin-top: -10px;
    margin-bottom: 14px;
    padding-left: 4px;
}
.dpg-consent-error.visible { display: block; }

/* PDPA Modal */
.dpg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 20px 16px;
    overflow-y: auto;
}
.dpg-modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.dpg-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    margin: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,0.16);
    overflow: hidden;
}
.dpg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E8EBF4;
    background: var(--navy);
}
.dpg-modal-header h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.dpg-modal-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.dpg-modal-close:hover { background: rgba(255,255,255,0.28); }
.dpg-modal-body {
    padding: 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
    max-height: 65vh;
    overflow-y: auto;
}
.dpg-modal-body h4 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 18px 0 7px;
}
.dpg-modal-body h4:first-child { margin-top: 0; }
.dpg-modal-body p { margin-bottom: 10px; }
.dpg-modal-body p:last-child { margin-bottom: 0; }
.dpg-modal-disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: #F7F8FC;
    border-radius: 6px;
    border-left: 3px solid var(--gold);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
}

/* ===== INLINE T&C EXPAND ===== */
.dpg-tc-toggle {
    background: none;
    border: none;
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    padding: 0;
    display: inline;
    line-height: inherit;
}
.dpg-tc-toggle:hover { color: var(--navy); }
.dpg-tc-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
    font-size: 0.78rem;
    color: var(--muted);
    background: #F7F8FC;
    border-radius: 6px;
    border-left: 3px solid var(--gold);
    margin-top: 0;
    line-height: 1.65;
}
.dpg-tc-expand.open {
    max-height: 800px;
    padding: 12px 14px;
    margin-top: 8px;
}
.dpg-tc-expand h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    margin: 10px 0 4px;
}
.dpg-tc-expand h4:first-child { margin-top: 0; }
.dpg-tc-expand p { margin-bottom: 6px; }
.dpg-tc-expand p:last-child { margin-bottom: 0; }
.dpg-tc-expand .dpg-tc-disclaimer {
    padding: 8px 10px;
    background: #fff;
    border-radius: 4px;
    border-left: 2px solid var(--gold);
    font-size: 0.75rem;
}

/* ===== PRINT ===== */
@media print {
    .dpg-nav, .dpg-scroll-progress, .dpg-cursor { display: none; }
    .dpg-hero { min-height: auto; padding: 40px 20px; }
    .dpg-fade-in { opacity: 1; transform: none; }
    .dpg-footer { background: white; color: var(--text); }
}
