/**
 * Car Service Manager - Frontend Styles
 */

/* Grid Layout */
.csm-services-grid {
    display: grid;
    gap: 25px;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.csm-cols-1 { grid-template-columns: 1fr; }
.csm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.csm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.csm-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .csm-cols-3, .csm-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .csm-cols-2, .csm-cols-3, .csm-cols-4 { grid-template-columns: 1fr; }
}

/* Service Card */
.csm-service-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.csm-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.csm-card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
}

.csm-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.csm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.csm-service-card:hover .csm-card-img {
    transform: scale(1.05);
}

.csm-placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    height: 100%;
    background: #f1f5f9;
}

/* Badge */
.csm-badge-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e63946;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.4);
    z-index: 2;
}

/* Card Body */
.csm-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.csm-card-category {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.csm-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.csm-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.csm-card-title a:hover {
    color: #e63946;
}

.csm-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Meta Bar (Price & Duration) */
.csm-card-meta-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 15px;
}

.csm-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.csm-price-main {
    font-size: 20px;
    font-weight: 800;
    color: #e63946;
}

.csm-price-del {
    font-size: 13px;
    color: #94a3b8;
}

.csm-card-duration {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

/* Action Button */
.csm-card-footer {
    margin-top: auto;
}

.csm-card-btn {
    display: block;
    text-align: center;
    background: #1e293b;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.csm-card-btn:hover {
    background: #e63946;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   Single Page Default Template Layout
   ========================================================================== */
.csm-single-service-page {
    padding: 40px 0 60px 0;
    background: #f8fafc;
    min-height: 80vh;
}

.csm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.csm-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

.csm-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.csm-single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 850px) {
    .csm-single-layout {
        grid-template-columns: 1fr;
    }
}

/* Left Main Content */
.csm-single-main {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.csm-category-tags {
    margin-bottom: 10px;
}

.csm-category-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 6px;
}

.csm-single-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.csm-single-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.csm-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.csm-service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e63946;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.csm-service-description h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.csm-content {
    line-height: 1.7;
    color: #334155;
    font-size: 15px;
}

/* Right Sidebar / Price Card */
.csm-single-sidebar {
    position: sticky;
    top: 30px;
}

.csm-price-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.csm-label-pakej {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.csm-pricing-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.csm-current-price {
    font-size: 32px;
    font-weight: 800;
    color: #e63946;
}

.csm-old-price {
    font-size: 16px;
    color: #94a3b8;
}

.csm-meta-specs {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 0;
    margin-bottom: 20px;
}

.csm-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.csm-spec-item:last-child { margin-bottom: 0; }

.csm-spec-icon {
    font-size: 20px;
}

.csm-spec-text strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
}

.csm-spec-text span {
    font-size: 14px;
    color: #64748b;
}

.csm-features-checklist h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1e293b;
}

.csm-features-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.csm-features-checklist li {
    font-size: 14px;
    color: #334155;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.csm-check-icon {
    color: #10b981;
    font-weight: 800;
}

/* WhatsApp CTA Button */
.csm-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.csm-whatsapp-btn:hover {
    background: #1eb956;
    transform: translateY(-2px);
}

.csm-booking-note {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* ==========================================================================
   Elementor Widget Meta Card Styles
   ========================================================================== */
.csm-widget-meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}

.csm-meta-header-title {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.csm-meta-pricing-area {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.csm-meta-price {
    font-size: 28px;
    font-weight: 800;
    color: #e63946;
}

.csm-meta-old-price {
    font-size: 15px;
    color: #94a3b8;
}

.csm-meta-specs-list {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #cbd5e1;
}

.csm-meta-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
}

.csm-spec-label {
    color: #64748b;
}

.csm-spec-val {
    color: #1e293b;
}

.csm-meta-features-wrap h4 {
    font-size: 15px;
    margin: 0 0 10px 0;
}

.csm-meta-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.csm-meta-checklist li {
    font-size: 14px;
    padding: 4px 0;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.csm-check-bullet {
    color: #10b981;
    font-weight: bold;
}

/* ==========================================================================
   Elementor Booking CTA Button Styles
   ========================================================================== */
.csm-booking-widget-wrapper {
    margin: 10px 0;
}

.csm-align-left { text-align: left; }
.csm-align-center { text-align: center; }
.csm-align-right { text-align: right; }
.csm-align-justify .csm-cta-whatsapp-btn { display: flex; width: 100%; justify-content: center; }

.csm-cta-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.csm-cta-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.4);
}

.csm-cta-subtext {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* ==========================================================================
   Extra Content Sections (Gallery, Video, FAQ, Specs, Testimonials,
   Related Services, Steps)
   ========================================================================== */
.csm-service-section {
    margin-top: 30px;
}

.csm-service-section h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.csm-full-width-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-top: 30px;
}

/* Gallery */
.csm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.csm-gallery-item-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.csm-gallery-item-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.csm-gallery-item-link:hover img {
    transform: scale(1.05);
}

/* Video */
.csm-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.csm-video-wrap iframe,
.csm-video-wrap embed,
.csm-video-wrap object,
.csm-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ */
.csm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.csm-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8fafc;
}

.csm-faq-question {
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.csm-faq-item[open] .csm-faq-question {
    margin-bottom: 10px;
}

.csm-faq-answer {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* Specs Table */
.csm-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.csm-specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.csm-specs-table tr:last-child {
    border-bottom: none;
}

.csm-specs-table th,
.csm-specs-table td {
    text-align: left;
    padding: 10px 8px;
    font-size: 14px;
}

.csm-specs-table th {
    color: #64748b;
    font-weight: 600;
    width: 40%;
}

.csm-specs-table td {
    color: #1e293b;
}

/* Testimonials */
.csm-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.csm-testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
}

.csm-testimonial-stars {
    margin-bottom: 8px;
}

.csm-star {
    color: #e2e8f0;
    font-size: 15px;
}

.csm-star.is-filled {
    color: #f59e0b;
}

.csm-testimonial-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.csm-testimonial-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* Related Services */
.csm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.csm-related-card {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csm-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.csm-related-img {
    height: 120px;
    background: #f1f5f9;
}

.csm-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csm-related-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.csm-related-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.csm-related-price {
    font-size: 13px;
    font-weight: 700;
    color: #e63946;
}

/* Process Steps */
.csm-steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.csm-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.csm-step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e63946;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.csm-step-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #1e293b;
}

.csm-step-desc {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Elementor Featured Image Widget */
.csm-widget-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.csm-widget-featured-image-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Elementor Title Widget */
.csm-widget-service-title {
    margin: 0 0 15px 0;
    font-weight: 800;
    color: #0f172a;
}

.csm-widget-service-title a {
    color: inherit;
    text-decoration: none;
}

/* Elementor Description Widget */
.csm-widget-description-heading {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.csm-widget-description {
    line-height: 1.7;
    color: #334155;
    font-size: 15px;
}

/* Elementor editor empty-state notice */
.csm-widget-empty-notice {
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}
