/* ===================================
   PalladiumHub - Modern Design Layer
   Loaded after style.css; overrides tokens & key components.
   Remove the <link> in layouts/app.blade.php to roll back.
   =================================== */

:root {
    --font-heading: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ph-light: #FAF8FD;
    --surface-2: #FAF8FD;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-md: 0 10px 30px -10px rgba(61, 20, 73, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(61, 20, 73, 0.28);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(123, 45, 142, 0.12);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --glass-bg: rgba(26, 17, 40, 0.7);
    --glass-border: rgba(192, 132, 252, 0.16);
}

::selection { background: var(--ph-primary); color: #fff; }

body { letter-spacing: -0.005em; }
h1, h2, h3, h4 { letter-spacing: -0.03em; font-weight: 800; }

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    transform-origin: 0 50%; transform: scaleX(0);
    background: var(--gradient-accent); z-index: 1300; pointer-events: none;
}

/* ---------- Header: floating glass pill ---------- */
.header { padding: 16px 0; }
.header .container {
    max-width: 1240px;
    padding: 10px 14px 10px 22px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px -12px rgba(61, 20, 73, 0.18);
    transition: all 0.4s var(--ease-out);
}
.header.scrolled {
    padding: 10px 0; background: transparent; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
[data-theme="dark"] .header.scrolled { background: transparent; border: 0; box-shadow: none; }
.header.scrolled .container { box-shadow: 0 12px 40px -12px rgba(61, 20, 73, 0.3); }
.logo img { height: 38px; }
.nav { gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-full);
    font-size: 0.92rem; font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}
.nav-link:hover { background: rgba(123, 45, 142, 0.08); color: var(--ph-primary); }
.nav-link::after { display: none; }
.nav-cta { border-radius: var(--radius-full); padding: 10px 22px; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--radius-full); font-weight: 700;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
}
.btn-primary {
    background: var(--gradient-primary); border: 0; color: #fff;
    box-shadow: 0 10px 24px -8px rgba(123, 45, 142, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(123, 45, 142, 0.6); }
.btn-outline { border-width: 1.5px; backdrop-filter: blur(6px); }
.btn-outline:hover { transform: translateY(-2px); }
.btn-accent { box-shadow: 0 10px 24px -8px rgba(245, 166, 35, 0.6); }
.btn-accent:hover { transform: translateY(-2px); }
.btn i { transition: transform 0.3s var(--ease-out); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }

/* ---------- Badges / eyebrow ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: rgba(123, 45, 142, 0.08);
    border: 1px solid rgba(123, 45, 142, 0.18);
    color: var(--ph-primary); font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.badge::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ph-accent); box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.25);
}

/* ---------- Hero: aurora + grid ---------- */
.hero {
    background:
        radial-gradient(60% 60% at 10% 10%, rgba(123, 45, 142, 0.20), transparent 60%),
        radial-gradient(50% 50% at 90% 15%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(45% 45% at 70% 95%, rgba(236, 72, 153, 0.14), transparent 60%),
        var(--ph-light);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(123, 45, 142, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 45, 142, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-blob-1 { background: rgba(123, 45, 142, 0.22); }
.hero-blob-2 { background: rgba(59, 130, 246, 0.2); }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; }
.gradient-text {
    background: linear-gradient(100deg, #7B2D8E, #3B82F6 55%, #EC4899);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent;
}
.hero-image .img-rounded {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 8px solid rgba(255, 255, 255, 0.7);
    transform: rotate(1.5deg);
    transition: transform 0.6s var(--ease-out);
}
.hero-image:hover .img-rounded { transform: rotate(0deg) scale(1.01); }
.floating-card {
    background: var(--glass-bg); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-header h2, .section-header-left h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.bg-light { background: linear-gradient(180deg, var(--ph-light), #fff 120%); }
[data-theme="dark"] .bg-light { background: var(--dark-bg-elevated); }

/* ---------- Stats: glass strip ---------- */
.stats { background: transparent; padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.stats .container { padding: 0 20px; }
.stats-grid {
    background: var(--glass-bg); backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); padding: 28px 16px;
}
.stat-value {
    font-family: var(--font-heading); font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Cards: spotlight + gradient edge ---------- */
.service-card, .testimonial-card, .blog-card, .team-card, .value-card,
.contact-card, .quick-contact-card, .process-step, .timeline-alt-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, border-color 0.3s ease;
}
.service-card::before, .testimonial-card::before, .value-card::before,
.blog-card::before, .team-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(123, 45, 142, 0.14), transparent 45%);
    transition: opacity 0.35s ease;
}
.service-card:hover::before, .testimonial-card:hover::before, .value-card:hover::before,
.blog-card:hover::before, .team-card:hover::before { opacity: 1; }
.service-card:hover, .testimonial-card:hover, .blog-card:hover,
.team-card:hover, .value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(123, 45, 142, 0.35);
}
.service-icon, .value-icon {
    border-radius: 18px;
    transition: transform 0.45s var(--ease-out);
}
.service-card:hover .service-icon, .value-card:hover .value-icon { transform: scale(1.1) rotate(-6deg); }
.blog-card-img img, .team-card img { transition: transform 0.8s var(--ease-out); }
.blog-card:hover .blog-card-img img, .team-card:hover img { transform: scale(1.06); }

/* ---------- CTA: mesh gradient ---------- */
.cta {
    position: relative; overflow: hidden; margin: 0 20px; border-radius: var(--radius-2xl);
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(236, 72, 153, 0.5), transparent 60%),
        radial-gradient(60% 80% at 100% 100%, rgba(59, 130, 246, 0.5), transparent 60%),
        linear-gradient(135deg, #3D1449, #7B2D8E);
}
.cta::before {
    content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 24px 24px;
}
.cta .container { position: relative; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }

/* ---------- Forms ---------- */
.form-control {
    border-radius: 14px; border: 1.5px solid var(--ph-border);
    padding: 14px 16px; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-control:focus {
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 4px rgba(123, 45, 142, 0.14); outline: 0;
}

/* ---------- Footer ---------- */
.footer { border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; margin-top: 48px; }

/* ---------- Reveal motion ---------- */
.reveal { transform: translateY(36px) scale(0.98); filter: blur(6px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); }
.reveal.revealed { transform: none; filter: none; }

@media (max-width: 991px) {
    .header .container { border-radius: 28px; padding: 8px 12px 8px 16px; }
    .stats { margin-top: -24px; }
    .hero-image .img-rounded { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { filter: none; transform: none; opacity: 1; transition: none; }
    .hero-blob { animation: none; }
    .scroll-progress { display: none; }
}

/* ---------- Fixes ---------- */
.stat-label { color: var(--ph-gray); font-weight: 600; }
.stat-item:not(:last-child)::after { background: var(--glass-border); }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.section-header .badge, .section-header-left .badge { width: fit-content; }
.section-header .badge { margin-inline: auto; }
@media (min-width: 992px) {
    .cards-grid:has(> :nth-child(3):last-child),
    .cards-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   All-pages pass
   ========================================================= */

/* ---------- Text logo (when no logo uploaded) ---------- */
.brand-mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-weight: 600; font-size: 1.35rem;
    letter-spacing: -0.04em; color: var(--ph-dark); white-space: nowrap;
}
.brand-mark b { font-weight: 800; background: var(--gradient-primary);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark-icon {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    background: var(--gradient-primary); color: #fff; font-size: 0.95rem;
    box-shadow: 0 8px 18px -6px rgba(123, 45, 142, 0.6); transform: rotate(-8deg);
}
.brand-mark-light { color: #fff; }
.brand-mark-light b { background: linear-gradient(100deg, #F5A623, #EC4899); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .brand-mark { color: var(--dark-text-primary); }

/* ---------- Inner page hero: same aurora + grid as home ---------- */
.page-hero {
    padding: 150px 0 96px;
    background:
        radial-gradient(55% 80% at 15% 0%, rgba(123, 45, 142, 0.18), transparent 65%),
        radial-gradient(50% 80% at 90% 10%, rgba(59, 130, 246, 0.16), transparent 65%),
        radial-gradient(40% 60% at 60% 100%, rgba(236, 72, 153, 0.10), transparent 65%),
        var(--ph-light);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(123, 45, 142, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 45, 142, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
}
.page-hero p { color: var(--ph-gray); font-size: 1.1rem; max-width: 640px; }
.page-hero h1 { max-width: 820px; }

/* ---------- Team ---------- */
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-grid-4, .cards-grid-4.cards-grid-center { justify-content: center; }
.cards-grid-4.cards-grid-center { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); }
@media (min-width: 992px) { .cards-grid-4:not(.cards-grid-center) { grid-template-columns: repeat(4, 1fr); } }
.team-card .team-img-wrapper { aspect-ratio: 4 / 4.2; }

/* ---------- Portfolio ---------- */
.pf-grid { align-items: stretch; }
.pf-card-wrapper, .pf-card { height: 100%; }
.pf-card { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--glass-border); }
.pf-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { flex: 1; }
.blog-detail-page-hero { padding: 140px 0 72px; }
.blog-detail-page-hero h1 { margin-bottom: 16px; }
.blog-detail-page-hero .blog-meta { justify-content: center; margin-top: 12px; gap: 20px; }
.blog-detail-body { font-size: 1.08rem; line-height: 1.85; }
.blog-detail-body p { margin-bottom: 1.2em; }
.blog-sidebar-widget { border-radius: var(--radius-xl); }

/* ---------- Contact ---------- */
.contact-card, .quick-contact-card { background: var(--glass-bg); backdrop-filter: blur(10px); }
.contact-icon, .quick-contact-icon { border-radius: 16px; }

/* ---------- Footer ---------- */
.footer {
    background:
        radial-gradient(50% 70% at 0% 0%, rgba(123, 45, 142, 0.35), transparent 60%),
        radial-gradient(50% 70% at 100% 100%, rgba(59, 130, 246, 0.22), transparent 60%),
        #1A0F26;
    position: relative;
}
.footer::before {
    content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.7), rgba(245, 166, 35, 0.7), transparent);
}
.footer-links li a:hover { color: #fff; }
.social-links a { border-radius: 14px; transition: transform 0.3s var(--ease-out), background 0.3s ease; }
.social-links a:hover { transform: translateY(-4px); }

/* ---------- Round 2 fixes ---------- */
.brand-text { display: inline-block; }
.cards-grid-4:has(> .contact-card) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 992px) { .cards-grid-4:has(> .contact-card) { grid-template-columns: repeat(4, 1fr); } }
.cards-grid-4:has(> .contact-card:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.contact-card { text-align: center; }
.map-container { overflow: hidden; border-radius: var(--radius-xl); min-height: 420px; }
.map-container iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.pfd-page { padding-top: 140px; }
.blog-card-img { aspect-ratio: auto; height: 240px; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #7B2D8E 0%, #a855f7 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050; /* below mobile nav / modals (1100) and toasts (1200) */
    box-shadow: 0 10px 28px rgba(123, 45, 142, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, box-shadow .2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1);
    box-shadow: 0 14px 34px rgba(123, 45, 142, 0.45);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.5);
    outline-offset: 3px;
}

.back-to-top i {
    font-size: 20px;
    line-height: 1;
    position: relative;
    transition: transform .2s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* scroll-progress ring around the button */
.back-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.back-to-top-ring circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset .1s linear;
}

@media (max-width: 767px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
    .back-to-top i { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top i { transition: none; }
}

@media print {
    .back-to-top { display: none; }
}

/* =====================================================================
   Clickable service cards
   ===================================================================== */
a.service-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.service-card-link:focus-visible {
    outline: 3px solid rgba(123, 45, 142, 0.4);
    outline-offset: 3px;
}

.service-card .service-more {
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ph-primary);
    position: relative;
    z-index: 1;
}

.service-card .service-more i {
    transition: transform .2s ease;
}

.service-card:hover .service-more i {
    transform: translateX(4px);
}

/* =====================================================================
   Service detail page
   ===================================================================== */
.svd-hero .container { gap: 14px; }

.svd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ph-gray);
}

.svd-breadcrumb a {
    color: var(--ph-gray);
    text-decoration: none;
}

.svd-breadcrumb a:hover { color: var(--ph-primary); }
.svd-breadcrumb i { font-size: 11px; opacity: .6; }
.svd-breadcrumb span { color: var(--ph-primary); font-weight: 600; }

.svd-hero-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
    margin: 6px auto 0;
    border-radius: 20px;
}

.svd-hero p { max-width: 680px; }

.svd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.svd-section { padding-top: 40px; }

.svd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: start;
}

.svd-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 12px 40px rgba(45, 27, 61, 0.10);
}

.svd-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.svd-heading {
    font-size: 28px;
    margin: 0 0 16px;
    color: var(--ph-dark);
}

.svd-subheading {
    font-size: 20px;
    margin: 40px 0 16px;
    color: var(--ph-dark);
}

.svd-muted { color: var(--ph-gray); }

.svd-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.svd-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(123, 45, 142, 0.07);
    color: var(--ph-dark);
    font-weight: 500;
    font-size: 14px;
}

.svd-tech i { color: var(--ph-primary); }

.svd-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.svd-step {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    background: #fff;
}

.svd-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #7B2D8E, #a855f7);
}

.svd-step h4 { font-size: 16px; margin: 0 0 4px; }
.svd-step p { font-size: 14px; margin: 0; color: var(--ph-gray); }

/* Enquiry card: follows the reader down the page beside long descriptions.
   Only sticky when the whole card fits on screen, so the Send button is never cut off. */
.svd-aside {
    position: static;
    align-self: start;
}

@media (min-width: 992px) and (min-height: 760px) {
    .svd-aside {
        position: sticky;
        top: 100px;
    }
}

.svd-enquiry {
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--ph-border);
    box-shadow: 0 20px 50px rgba(123, 45, 142, 0.12);
    overflow: hidden;
    scroll-margin-top: 110px;
}

.svd-enquiry-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #7B2D8E 0%, #a855f7 100%);
    color: #fff;
}

.svd-enquiry-head h3 { color: #fff; font-size: 20px; margin: 0 0 2px; }
.svd-enquiry-head p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 13px; }

.svd-enquiry-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

#serviceEnquiryForm { padding: 22px 24px 24px; }
#serviceEnquiryForm .form-group { margin-bottom: 14px; }
#serviceEnquiryForm .form-label { font-size: 13px; }

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

.svd-service-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(123, 45, 142, 0.07);
    border: 1px dashed rgba(123, 45, 142, 0.3);
    font-size: 14px;
    color: var(--ph-dark);
}

.svd-service-chip i { color: var(--ph-primary); }

.svd-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.svd-error {
    display: block;
    color: #e11d48;
    font-size: 12px;
    margin-top: 4px;
}

.svd-submit { width: 100%; justify-content: center; }

.svd-privacy {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--ph-gray);
}

.svd-success {
    padding: 36px 24px;
    text-align: center;
}

.svd-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 24px rgba(22, 163, 74, .3);
    margin-bottom: 14px;
}

.svd-success h3 { margin: 0 0 8px; }
.svd-success p { color: var(--ph-gray); margin: 0 0 18px; }

@media (max-width: 991px) {
    .svd-layout { grid-template-columns: 1fr; gap: 36px; }
    .svd-aside { position: static; }
}

@media (max-width: 575px) {
    .svd-steps, .svd-form-row { grid-template-columns: 1fr; gap: 0; }
    .svd-steps { gap: 12px; }
    .svd-heading { font-size: 24px; }
    #serviceEnquiryForm, .svd-enquiry-head { padding-left: 18px; padding-right: 18px; }
}

/* Mobile floating "Make an Enquiry" button (service detail) */
.svd-float-cta {
    display: none;
}

@media (max-width: 991px) {
    .svd-float-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        left: 50%;
        bottom: 18px;
        z-index: 1049; /* just below the back-to-top button */
        padding: 12px 22px;
        border-radius: 999px;
        background: linear-gradient(135deg, #7B2D8E 0%, #a855f7 100%);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 12px 30px rgba(123, 45, 142, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 20px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }

    .svd-float-cta.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .svd-float-cta:hover,
    .svd-float-cta:focus {
        color: #fff;
    }
}

@media (max-width: 380px) {
    .svd-float-cta { padding: 11px 18px; font-size: 14px; }
}

@media print {
    .svd-float-cta { display: none !important; }
}
