/* ==========================================
MyCarMarket Australia
Version: v2.2.3
File: services/static/services/css/service_detail.css
Location: services/static/services/css/service_detail.css
Description:
Car Service detail page styling for the
MyCarMarket Australia Services marketplace.

Includes:
- Breadcrumb navigation
- Advertisement area spacing
- Service title and business header
- Service type and moderation badges
- Starting price panel
- Responsive two-column layout
- Main service image
- About service section
- Service information sidebar
- Secure enquiry form
- Owner moderation notice
- Related service cards
- Tablet responsiveness
- Mobile responsiveness
- Small-mobile optimisation
- Accessibility improvements

Last Updated: 17 Jul 2026
========================================== */


/* ==========================================
SECTION 1 START
Page Wrapper
========================================== */

.service-detail-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 24px 70px;
    box-sizing: border-box;
}

/* ==========================================
SECTION 1 END
========================================== */


/* ==========================================
SECTION 2 START
Breadcrumb Navigation
========================================== */

.service-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.service-detail-breadcrumb a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.service-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.service-detail-breadcrumb a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================
SECTION 2 END
========================================== */


/* ==========================================
SECTION 3 START
Advertisement Area
========================================== */

.service-detail-banner {
    width: 100%;
    margin: 0 0 24px;
}

/* ==========================================
SECTION 3 END
========================================== */


/* ==========================================
SECTION 4 START
Service Header
========================================== */

.service-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    margin: 0 0 24px;
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-sizing: border-box;
}

.service-detail-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.service-detail-heading h1 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.service-detail-business {
    margin: 0 0 6px;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.service-detail-location {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
SECTION 4 END
========================================== */


/* ==========================================
SECTION 5 START
Service Badges
========================================== */

.service-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.service-detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}

.service-detail-badge-mobile {
    border: 1px solid #93c5fd;
    background: #dbeafe;
    color: #1e40af;
}

.service-detail-badge-approved {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
}

.service-detail-badge-pending {
    border: 1px solid #fcd34d;
    background: #fef3c7;
    color: #92400e;
}

.service-detail-badge-rejected {
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================
SECTION 5 END
========================================== */


/* ==========================================
SECTION 6 START
Starting Price Panel
========================================== */

.service-detail-price {
    flex: 0 0 230px;
    width: 230px;
    min-width: 230px;
    padding: 21px 22px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.service-detail-price-label {
    display: block;
    margin: 0 0 6px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.service-detail-price strong {
    display: block;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* ==========================================
SECTION 6 END
========================================== */


/* ==========================================
SECTION 7 START
Main Two-Column Layout
========================================== */

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    align-items: start;
    gap: 24px;
    width: 100%;
}

.service-detail-main {
    min-width: 0;
}

/* ==========================================
SECTION 7 END
========================================== */


/* ==========================================
SECTION 8 START
Main Service Image
========================================== */

.service-detail-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 0 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #e5e7eb;
    box-sizing: border-box;
}

.service-detail-main-image {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.service-detail-image-placeholder {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    box-sizing: border-box;
}

/* ==========================================
SECTION 8 END
========================================== */


/* ==========================================
SECTION 9 START
Main Content Sections
========================================== */

.service-detail-section {
    width: 100%;
    margin: 0 0 24px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-sizing: border-box;
}

.service-detail-section:last-child {
    margin-bottom: 0;
}

.service-detail-section h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.service-detail-description {
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.service-detail-description p {
    margin: 0 0 16px;
}

.service-detail-description p:last-child {
    margin-bottom: 0;
}

.service-detail-description ul,
.service-detail-description ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.service-detail-description li {
    margin: 0 0 7px;
}

.service-detail-description a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.service-detail-description a:hover {
    text-decoration: underline;
}

/* ==========================================
SECTION 9 END
========================================== */


/* ==========================================
SECTION 10 START
Sidebar Layout
========================================== */

.service-detail-sidebar {
    position: sticky;
    top: 88px;
    min-width: 0;
    display: grid;
    gap: 20px;
}

.service-sidebar-card {
    min-width: 0;
    width: 100%;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-sizing: border-box;
}

.service-sidebar-card h2 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

/* ==========================================
SECTION 10 END
========================================== */


/* ==========================================
SECTION 11 START
Service Information
========================================== */

.service-information-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.service-information-item {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.service-information-item:first-child {
    padding-top: 0;
}

.service-information-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.service-information-label {
    display: block;
    margin: 0 0 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-information-value {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: normal;
}

.service-information-value a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.service-information-value a:hover {
    text-decoration: underline;
}

.service-information-value a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================
SECTION 11 END
========================================== */


/* ==========================================
SECTION 12 START
Enquiry Form
========================================== */

.service-enquiry-form {
    width: 100%;
}

.service-enquiry-form p {
    margin: 0 0 16px;
}

.service-enquiry-form p:last-of-type {
    margin-bottom: 16px;
}

.service-enquiry-form label {
    display: block;
    margin: 0 0 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.service-enquiry-form input,
.service-enquiry-form textarea,
.service-enquiry-form select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.service-enquiry-form textarea {
    min-height: 140px;
    resize: vertical;
}

.service-enquiry-form input::placeholder,
.service-enquiry-form textarea::placeholder {
    color: #94a3b8;
}

.service-enquiry-form input:focus,
.service-enquiry-form textarea:focus,
.service-enquiry-form select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.service-enquiry-form input:disabled,
.service-enquiry-form textarea:disabled,
.service-enquiry-form select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.service-enquiry-form .errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.service-enquiry-form .helptext {
    display: block;
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================
SECTION 12 END
========================================== */


/* ==========================================
SECTION 13 START
Honeypot Spam Protection Field
========================================== */

.service-honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================
SECTION 13 END
========================================== */


/* ==========================================
SECTION 14 START
Enquiry Button and Privacy Note
========================================== */

.service-enquiry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: #e52329;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.service-enquiry-button:hover {
    background: #c91d22;
}

.service-enquiry-button:active {
    transform: translateY(1px);
}

.service-enquiry-button:focus-visible {
    outline: 3px solid rgba(229, 35, 41, 0.25);
    outline-offset: 2px;
}

.service-enquiry-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.service-enquiry-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================
SECTION 14 END
========================================== */


/* ==========================================
SECTION 15 START
Owner Moderation Notice
========================================== */

.service-owner-notice {
    width: 100%;
    margin: 0 0 24px;
    padding: 15px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    box-sizing: border-box;
}

/* ==========================================
SECTION 15 END
========================================== */


/* ==========================================
SECTION 16 START
Related Services
========================================== */

.service-related-section {
    margin: 30px 0 0;
}

.service-related-section h2 {
    margin: 0 0 20px;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.service-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-related-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.service-related-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    background: #e5e7eb;
}

.service-related-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
}

.service-related-content {
    padding: 17px;
}

.service-related-content h3 {
    margin: 0 0 9px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.service-related-content h3 a {
    color: #111827;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.service-related-content h3 a:hover {
    color: #2563eb;
}

.service-related-content h3 a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
    border-radius: 4px;
}

.service-related-content p {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.service-related-price {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

/* ==========================================
SECTION 16 END
========================================== */


/* ==========================================
SECTION 17 START
Large Tablet Responsiveness
Maximum Width: 1100px
========================================== */

@media (max-width: 1100px) {

    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-detail-sidebar {
        position: static;
        top: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .service-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ==========================================
SECTION 17 END
========================================== */


/* ==========================================
SECTION 18 START
Tablet Responsiveness
Maximum Width: 820px
========================================== */

@media (max-width: 820px) {

    .service-detail-page {
        padding: 20px 16px 55px;
    }

    .service-detail-header {
        align-items: stretch;
        gap: 20px;
        padding: 22px;
    }

    .service-detail-heading h1 {
        font-size: 28px;
    }

    .service-detail-price {
        flex-basis: 210px;
        width: 210px;
        min-width: 210px;
    }

    .service-detail-main-image {
        height: 400px;
    }

    .service-detail-sidebar {
        grid-template-columns: 1fr;
    }

}

/* ==========================================
SECTION 18 END
========================================== */


/* ==========================================
SECTION 19 START
Mobile Responsiveness
Maximum Width: 680px
========================================== */

@media (max-width: 680px) {

    .service-detail-page {
        padding: 14px 12px 42px;
    }

    .service-detail-breadcrumb {
        gap: 5px;
        margin-bottom: 14px;
        font-size: 12px;
    }

    .service-detail-banner {
        margin-bottom: 18px;
    }

    .service-detail-header {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-bottom: 18px;
        padding: 18px;
        border-radius: 14px;
    }

    .service-detail-heading {
        width: 100%;
    }

    .service-detail-heading h1 {
        margin-bottom: 8px;
        font-size: 26px;
        line-height: 1.2;
    }

    .service-detail-business {
        margin-bottom: 5px;
        font-size: 15px;
    }

    .service-detail-location {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .service-detail-badges {
        gap: 6px;
    }

    .service-detail-badge {
        min-height: 27px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .service-detail-price {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
        padding: 17px 18px;
        border-radius: 12px;
    }

    .service-detail-price-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .service-detail-price strong {
        font-size: 24px;
    }

    .service-detail-layout {
        gap: 18px;
    }

    .service-detail-image-wrap {
        margin-bottom: 18px;
        border-radius: 13px;
    }

    .service-detail-main-image {
        width: 100%;
        height: auto;
        max-height: 360px;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .service-detail-image-placeholder {
        min-height: 250px;
        padding: 24px 18px;
        font-size: 14px;
    }

    .service-detail-section {
        margin-bottom: 18px;
        padding: 19px 17px;
        border-radius: 14px;
    }

    .service-detail-section h2 {
        margin-bottom: 13px;
        font-size: 20px;
    }

    .service-detail-description {
        font-size: 14px;
        line-height: 1.75;
    }

    .service-detail-description p {
        margin-bottom: 14px;
    }

    .service-detail-sidebar {
        gap: 18px;
    }

    .service-sidebar-card {
        padding: 19px 17px;
        border-radius: 14px;
    }

    .service-sidebar-card h2 {
        margin-bottom: 17px;
        font-size: 20px;
    }

    .service-information-item {
        padding: 13px 0;
    }

    .service-information-label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .service-information-value {
        font-size: 14px;
        line-height: 1.55;
    }

    .service-enquiry-form p {
        margin-bottom: 15px;
    }

    .service-enquiry-form label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .service-enquiry-form input,
    .service-enquiry-form textarea,
    .service-enquiry-form select {
        min-height: 50px;
        padding: 12px 13px;
        border-radius: 9px;
        font-size: 16px;
    }

    .service-enquiry-form textarea {
        min-height: 145px;
    }

    .service-enquiry-button {
        min-height: 52px;
        border-radius: 9px;
        font-size: 15px;
    }

    .service-enquiry-note {
        margin-top: 11px;
        font-size: 11px;
        line-height: 1.55;
    }

    .service-owner-notice {
        margin-bottom: 18px;
        padding: 13px 15px;
        font-size: 13px;
    }

    .service-related-section {
        margin-top: 24px;
    }

    .service-related-section h2 {
        margin-bottom: 16px;
        font-size: 22px;
    }

    .service-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-related-image,
    .service-related-placeholder {
        height: 210px;
    }

}

/* ==========================================
SECTION 19 END
========================================== */


/* ==========================================
SECTION 20 START
Small Mobile Responsiveness
Maximum Width: 420px
========================================== */

@media (max-width: 420px) {

    .service-detail-page {
        padding: 12px 10px 35px;
    }

    .service-detail-breadcrumb {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .service-detail-header {
        gap: 16px;
        padding: 16px 14px;
    }

    .service-detail-heading h1 {
        font-size: 23px;
    }

    .service-detail-business {
        font-size: 14px;
    }

    .service-detail-price {
        padding: 15px;
    }

    .service-detail-price strong {
        font-size: 22px;
    }

    .service-detail-main-image {
        max-height: 280px;
        aspect-ratio: 4 / 3;
    }

    .service-detail-section,
    .service-sidebar-card {
        padding: 17px 14px;
    }

    .service-detail-section h2,
    .service-sidebar-card h2 {
        font-size: 19px;
    }

    .service-related-image,
    .service-related-placeholder {
        height: 190px;
    }

}

/* ==========================================
SECTION 20 END
========================================== */


/* ==========================================
SECTION 21 START
Very Small Mobile Responsiveness
Maximum Width: 360px
========================================== */

@media (max-width: 360px) {

    .service-detail-page {
        padding-right: 8px;
        padding-left: 8px;
    }

    .service-detail-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .service-detail-heading h1 {
        font-size: 21px;
    }

    .service-detail-price strong {
        font-size: 21px;
    }

    .service-detail-section,
    .service-sidebar-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .service-enquiry-form input,
    .service-enquiry-form textarea,
    .service-enquiry-form select {
        padding-right: 11px;
        padding-left: 11px;
    }

}

/* ==========================================
SECTION 21 END
========================================== */


/* ==========================================
SECTION 22 START
Accessibility and Reduced Motion
========================================== */

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

    .service-related-card,
    .service-enquiry-button,
    .service-enquiry-form input,
    .service-enquiry-form textarea,
    .service-enquiry-form select {
        transition: none;
    }

}

/* ==========================================
SECTION 22 END
========================================== */