/* =====================================================
   DATAQUEST SOLUTIONS — SERVICE DETAIL PAGE
   Brand: Deep Navy | Orange | White
===================================================== */

:root {
    --dq-navy: #0D2853;
    --dq-navy-dark: #071A36;
    --dq-orange: #F97316;
    --dq-orange-dark: #EA580C;
    --dq-white: #FFFFFF;
    --dq-light: #F8FAFC;
    --dq-text: #334155;
    --dq-muted: #64748B;
    --dq-border: #E2E8F0;
    --dq-shadow: 0 10px 30px rgba(13, 40, 83, 0.08);
    --dq-shadow-hover: 0 16px 36px rgba(13, 40, 83, 0.14);
    --dq-radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--dq-light);
    color: var(--dq-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a,
button,
input,
textarea {
    font: inherit;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--dq-orange);
    outline-offset: 3px;
}

/* ================= MAIN CONTAINER ================= */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 25px 21px 67px;
}

#service-detail-container {
    width: 100%;
}

.loading-state {
    min-height: 300px;
    display: grid;
    place-items: center;
    color: var(--dq-navy);
    font-weight: 600;
}

/* ================= SERVICE PAGE ================= */

.service-page {
    width: 100%;
}

/* ================= BREADCRUMBS ================= */

.service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--dq-muted);
    font-size: 0.86rem;
}

.service-breadcrumb a {
    color: var(--dq-navy);
    font-weight: 600;
}

.service-breadcrumb a:hover {
    color: var(--dq-orange);
}

.service-breadcrumb [aria-current="page"] {
    overflow-wrap: anywhere;
}

/* ================= HERO ================= */

.service-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 42px;
    padding: clamp(25px, 5vw, 58px);
    overflow: hidden;
    border-radius: 22px;
    background: var(--dq-navy);
    color: var(--dq-white);
    box-shadow: var(--dq-shadow);
}

.service-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -90px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.service-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.service-eyebrow,
.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--dq-orange);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    line-height: 1.5;
}

.service-hero h1 {
    margin: 0 0 20px;
    color: var(--dq-white);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.service-hero-description {
    max-width: 560px;
    margin: 0 0 26px;
    color: #E0E8F4;
    font-size: 1.04rem;
    line-height: 1.85;
}

.service-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 13px 22px;
    border: 2px solid var(--dq-orange);
    border-radius: 8px;
    background: var(--dq-orange);
    color: var(--dq-white);
    font-weight: 800;
    transition: background 0.25s ease, transform 0.25s ease;
}

.service-hero-button:hover {
    background: var(--dq-orange-dark);
    border-color: var(--dq-orange-dark);
    transform: translateY(-2px);
}

/* Hero trust points */

.service-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 25px;
}

.service-trust-points span {
    color: #E0E8F4;
    font-size: 0.8rem;
}

.service-trust-points span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--dq-orange);
    font-weight: 900;
}

/* ================= HERO IMAGE ================= */

.service-hero-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.main-service-img {
    display: block;
    width: 100%;
    height: 340px;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: var(--dq-navy-dark);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

.service-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: var(--dq-navy-dark);
    color: var(--dq-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.service-image-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    color: #E0E8F4;
    font-size: 0.82rem;
}

.service-caption-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--dq-orange);
}

/* ================= CONTENT LAYOUT ================= */

.service-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    align-items: start;
    gap: 28px;
    margin-top: 30px;
}

/* ================= MAIN CONTENT CARD ================= */

.main-content {
    min-width: 0;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--dq-border);
    border-radius: var(--dq-radius);
    background: var(--dq-white);
    color: var(--dq-text);
    box-shadow: var(--dq-shadow);
}

.service-content-section+.service-content-section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--dq-border);
}

.main-content .section-kicker {
    margin-bottom: 8px;
}

.main-content h2 {
    margin: 0 0 16px;
    color: var(--dq-navy);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.35;
}

.main-content p {
    margin: 0;
    color: var(--dq-text);
    font-size: 0.98rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* ================= FEATURE LIST ================= */

.service-feature-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dq-text);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.feature-check {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin-top: 2px;
    border-radius: 50%;
    background: #FFF1E8;
    color: var(--dq-orange-dark);
    font-size: 0.85rem;
    font-weight: 900;
}

/* ================= TECHNOLOGY TAGS ================= */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #DCE5F2;
    border-radius: 30px;
    background: #F2F6FC;
    color: var(--dq-navy);
    font-size: 0.84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ================= SIDEBAR ================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}


.price-card {
    position: static;
    /* Stops the card from sticking while scrolling */
    top: auto;

    padding: 26px;
    border: 1px solid var(--dq-border);
    border-top: 5px solid var(--dq-orange);
    border-radius: var(--dq-radius);
    background: var(--dq-white);
    color: var(--dq-text);
    box-shadow: var(--dq-shadow);
}

.request-card-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--dq-orange-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.price-card h2 {
    margin: 0 0 12px;
    color: var(--dq-navy);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.35;
}

.request-card-description {
    margin: 0 0 22px;
    color: var(--dq-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.service-summary-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 0;
    border-top: 1px solid var(--dq-border);
}

.service-summary-item span {
    color: var(--dq-muted);
    font-size: 0.83rem;
}

.service-summary-item strong {
    color: var(--dq-navy);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

/* ================= PRIMARY BUTTON ================= */

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    padding: 13px 16px;
    border: 2px solid var(--dq-orange);
    border-radius: 8px;
    background: var(--dq-orange);
    color: var(--dq-white);
    font-weight: 800;
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
    background: var(--dq-orange-dark);
    border-color: var(--dq-orange-dark);
    transform: translateY(-2px);
}

.request-card-note {
    margin: 14px 0 0;
    color: var(--dq-muted);
    font-size: 0.78rem;
    line-height: 1.65;
    text-align: center;
}

/* ================= HELP CARD ================= */

.service-help-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px;
    border: 1px solid #FBD5BB;
    border-radius: 12px;
    background: #FFF7F1;
}

.help-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: var(--dq-orange);
    color: var(--dq-white);
    font-weight: 800;
}

.service-help-card h3 {
    margin: 0 0 5px;
    color: var(--dq-navy);
    font-size: 1rem;
}

.service-help-card p {
    margin: 0 0 8px;
    color: var(--dq-muted);
    font-size: 0.86rem;
}

.service-help-card a {
    color: var(--dq-navy);
    font-size: 0.88rem;
    font-weight: 800;
}

.service-help-card a:hover {
    color: var(--dq-orange-dark);
}

/* ================= BOTTOM CTA ================= */

.service-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 30px;
    padding: 32px;
    border-radius: var(--dq-radius);
    background: var(--dq-navy);
    color: var(--dq-white);
}

.service-bottom-cta .section-kicker {
    margin-bottom: 8px;
}

.service-bottom-cta h2 {
    max-width: 700px;
    margin: 0 0 10px;
    color: var(--dq-white);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.35;
}

.service-bottom-cta p {
    margin: 0;
    color: #D1DDED;
    font-size: 0.93rem;
}

.service-bottom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--dq-orange);
    color: var(--dq-white);
    font-weight: 800;
    transition: background 0.25s ease;
}

.service-bottom-button:hover {
    background: var(--dq-orange-dark);
}

/* ================= MODAL ================= */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px 14px;
    overflow-y: auto;
    background: rgba(7, 26, 54, 0.78);
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 20px auto;
    padding: 32px;
    border: 1px solid var(--dq-border);
    border-radius: 16px;
    background: var(--dq-white);
    color: var(--dq-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.request-service-heading {
    margin: 0 38px 24px 0;
    color: var(--dq-navy);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.35;
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--dq-muted);
    font-size: 1.9rem;
    cursor: pointer;
}

.close-modal:hover {
    background: #FFF1E8;
    color: var(--dq-orange-dark);
}

/* ================= FORM FIELDS ================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--dq-navy);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: var(--dq-white);
    color: var(--dq-navy);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    min-height: 115px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--dq-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

/* ================= SUBMIT BUTTON ================= */

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    padding: 13px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--dq-orange);
    color: var(--dq-white);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.25s ease;
}

.submit-btn:hover {
    background: var(--dq-orange-dark);
}

.submit-btn:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    opacity: 0.75;
}

.success {
    margin-top: 14px;
    color: #15803D;
    font-weight: 700;
}

.error,
.error-msg {
    margin-top: 14px;
    color: #B91C1C;
    font-weight: 700;
}

/* =====================================
   1. MOBILE LAYOUT
===================================== */
@media (max-width: 680px) {
    .container {
        padding: 16px 14px 35px;
    }

    .service-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 5rem;
        border-radius: 14px;
    }

    .service-info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 20px;
    }

    .main-content,
    .price-card {
        width: 100%;
        min-width: 0;
        padding: 22px 17px;
    }

    .sidebar {
        width: 100%;
        gap: 15px;
    }

    .service-bottom-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px 18px;
    }
}

/* =====================================
   2. MOBILE TYPOGRAPHY
===================================== */
@media (max-width: 680px) {
    .service-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .service-hero-description {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .main-content h2 {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .main-content p,
    .service-feature-list li {
        font-size: 0.92rem;
        line-height: 1.8;
    }
}

/* =====================================
   3. MOBILE IMAGES
===================================== */
@media (max-width: 680px) {
    .main-service-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 12px;
    }

    .service-image-placeholder {
        min-height: 190px;
        padding: 20px;
    }
}

/* =====================================
   4. MOBILE BUTTONS & INTERACTIONS
===================================== */
@media (max-width: 680px) {

    .service-hero-button,
    .btn-primary,
    .service-bottom-button,
    .submit-btn {
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 0.94rem;
        font-weight: 800;
    }

    .service-hero-button,
    .btn-primary,
    .service-bottom-button,
    .submit-btn {
        background: var(--dq-orange);
        color: var(--dq-white);
    }

    .service-hero-button:hover,
    .btn-primary:hover,
    .service-bottom-button:hover,
    .submit-btn:hover {
        background: var(--dq-orange-dark);
    }
}

/* =====================================
   5. MOBILE FORMS & MODALS
===================================== */
@media (max-width: 680px) {
    .modal {
        padding: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        width: 100%;
        max-width: 520px;
        margin: 10px auto;
        padding: 24px 17px;
        border-radius: 13px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        min-height: 48px;
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 110px;
    }

    .price-card {
        position: static;
    }
}

/* =====================================
   EXTRA SMALL PHONES
===================================== */
@media (max-width: 360px) {
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .service-hero {
        padding: 20px 14px;
    }

    .service-hero h1 {
        font-size: 1.8rem;
    }

    .main-content,
    .price-card {
        padding: 19px 14px;
    }
}


/* Service request success popup */
.success-popup-overlay[hidden] {
    display: none !important;
}

.success-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 20, 40, 0.72);
    backdrop-filter: blur(5px);
}

.success-popup-card {
    width: 100%;
    max-width: 440px;
    padding: 36px 28px;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    animation: successPopupAppear 0.3s ease-out;
}

.success-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #16834a;
    font-size: 38px;
    font-weight: 700;
}

.success-popup-card h2 {
    margin: 0 0 14px;
    color: #14213d;
    font-size: 25px;
    line-height: 1.3;
}

.success-popup-card p {
    margin: 0 0 26px;
    color: #596579;
    font-size: 15px;
    line-height: 1.7;
}

#success-popup-close {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 9px;
    background: #f28c28;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#success-popup-close:hover {
    background: #d97515;
}

@keyframes successPopupAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* SERVICE REQUEST MODAL */

.request-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.request-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.request-modal-content h2 {
    margin-top: 0;
    padding-right: 25px;
}

.request-modal-content .close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.request-modal-content .form-group {
    margin-bottom: 16px;
}

.request-modal-content label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.request-modal-content input,
.request-modal-content textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
}

.request-modal-content textarea {
    resize: vertical;
}

.request-modal-content button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

.request-modal-content button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#form-message.error {
    color: #b42318;
    margin: 10px 0;
}

@media (max-width: 480px) {
    .request-modal-content {
        padding: 24px 18px;
    }
}
