/**
 * Service Detail Module - New Design
 * Compiled CSS from SCSS
 */

/* Prevent horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Variables */
:root {
    --service-primary-color: #AA3021;
    --service-text-dark: #333333;
    --service-text-light: #666666;
    --service-border-color: #e0e0e0;
    --service-bg-light: #f9f9f9;
    --service-facebook-blue: #3b5998;
    --service-zalo-blue: #0084ff;
    --service-talk-yellow: #FFC107;
    --service-line-green: #00B900;
}

/* Breadcrumb */
.service-breadcrumb {
    padding: 20px 0;
    background-color: var(--service-bg-light);
    font-size: 14px;
    color: var(--service-text-light);
}

@media (max-width: 768px) {
    .service-breadcrumb {
        padding: 12px 0;
        font-size: 13px;
    }
}

/* Main Section */
.service-main-section {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .service-main-section {
        padding: 0;
    }
}

/* Service Info */
.service-info-wrapper .service-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--service-text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .service-info-wrapper .service-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
}

.service-info-wrapper .section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--service-text-dark);
    margin-bottom: 8px;
}

/* Google Rating */
.service-rating {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 30px;
}

.service-rating .rating-stars {
    display: flex;
    gap: 4px;
    color: #FFC107;
    font-size: 16px;
}

.service-rating .review-count {
    font-size: 14px;
}

.service-rating .rating-text {
    font-size: 14px;
    color: var(--service-text-light);
}

@media (max-width: 768px) {
    .service-rating {
        margin-bottom: 20px;
    }

    .service-rating .rating-stars {
        font-size: 14px;
    }

    .service-rating .review-count {
        font-size: 14px;
    }

    .service-rating .rating-text {
        font-size: 13px;
    }
}

/* Duration Selector */
.service-duration-section {
    margin-bottom: 30px;
}

.duration-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.duration-row .section-label {
    flex-shrink: 0;
    min-width: 120px;
    margin-bottom: 0;
}

.duration-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 500px;
}

.duration-option {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 150px;
    padding: 8px 24px;
    border: 1.5px solid var(--service-text-dark);
    border-radius: 20px;
    background-color: #fff;
    color: var(--service-text-dark);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.duration-option:hover {
    border-color: var(--service-primary-color);
    color: var(--service-primary-color);
}

.duration-option.active {
    border-color: var(--service-primary-color);
    background-color: var(--service-primary-color);
    color: #fff;
}

@media (max-width: 576px) {
    .duration-option {
        flex: 1 1 45%;
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Location Selector */
.service-location-section {
    margin-bottom: 30px;
}

.location-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.location-row .section-label {
    flex-shrink: 0;
    min-width: 120px;
    margin-bottom: 0;
    margin-top: 12px;
}

.location-controls {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 500px;
}

.location-select-wrapper {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.location-select {
    width: 100%;
    padding: 8px 40px 8px 20px;
    border: 1.5px solid var(--service-text-dark);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--service-text-dark);
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    min-height: 40px;
}

.location-select:focus {
    outline: none;
    border-color: var(--service-primary-color);
}

.location-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--service-primary-color);
    pointer-events: none;
    font-size: 16px;
}

.location-guide-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    background-color: transparent;
    color: var(--service-primary-color);
    font-size: 13px;
    font-weight: 400;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
}

.location-guide-btn .guide-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.location-guide-btn span {
    font-size: 13px;
    display: block;
}

.location-guide-btn:hover {
    color: #8a2719;
}

@media (max-width: 768px) {

    /* Reorder sections on mobile */
    .service-info-wrapper {
        display: flex;
        flex-direction: column;
    }

    .service-title {
        order: 1;
    }

    .service-rating {
        order: 2;
    }

    .service-price-section {
        order: 3;
    }

    .service-duration-section {
        order: 4;
    }

    .service-location-section {
        order: 5;
    }

    .service-usp-list {
        order: 7;
    }

    .service-booking-buttons {
        order: 6;
    }

    .duration-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .location-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
    }

    .duration-row .section-label,
    .location-row .section-label {
        min-width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-top: 0;
        font-size: 13px;
    }

    .duration-options {
        flex: 1;
        gap: 8px;
    }

    .location-controls {
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        max-width: 100%;
    }

    .location-select-wrapper {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .location-guide-btn {
        flex-shrink: 0;
        padding: 8px 6px;
        min-width: 50px;
        font-size: 11px;
    }

    .location-guide-btn .guide-icon {
        width: 20px;
        height: 20px;
    }

    .location-guide-btn span {
        font-size: 11px;
    }
}

/* Price Display */
.service-price-section {
    margin-bottom: 30px;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-display .price-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--service-primary-color);
    line-height: 1;
}

.price-note {
    margin: 0;
    font-size: 12px;
    color: var(--service-primary-color);
}

@media (max-width: 768px) {
    .price-display .price-value {
        font-size: 36px;
    }

    .price-note {
        font-size: 11px;
    }
}

/* USP List */
.service-usp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--service-text-dark);
}

.usp-item:last-child {
    margin-bottom: 0;
}

.usp-icon {
    color: var(--service-primary-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.usp-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.usp-content {
    flex: 1;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .service-usp-list {
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .usp-item {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .usp-icon-image {
        width: 30px;
        height: 30px;
    }
}

/* Booking Buttons */
.service-booking-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.booking-btn .booking-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.btn-facebook {
    background-color: var(--service-facebook-blue);
}

.btn-facebook:hover {
    background-color: #2d4373;
}

.btn-zalo {
    background-color: var(--service-zalo-blue);
}

.btn-zalo:hover {
    background-color: #0069cc;
}

.btn-talk {
    background-color: #feea3a;
    color: var(--service-text-dark);
}

.btn-talk:hover {
    background-color: #e6ad06;
}

.btn-line {
    background-color: var(--service-line-green);
}

.btn-line:hover {
    background-color: #009400;
}

@media (max-width: 576px) {
    .service-booking-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-btn {
        padding: 12px 8px;
        font-size: 13px;
    }

    .booking-btn .booking-icon {
        width: 22px;
        height: 22px;
    }
}

/* Gallery */
.service-gallery-wrapper .gallery-main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--service-bg-light);
}

.gallery-main-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main-image .zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
}

.gallery-main-image .zoom-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}


.gallery-main-image .zoom-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

@media (max-width: 768px) {
    .gallery-main-image {
        aspect-ratio: 16 / 9;
    }
}

/* Gallery Thumbnails Navigation */
.gallery-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid var(--service-border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--service-text-dark);
    z-index: 2;
}

.gallery-nav-btn:hover {
    background-color: var(--service-primary-color);
    border-color: var(--service-primary-color);
    color: #fff;
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.gallery-nav-btn:disabled:hover {
    background-color: #fff;
    border-color: var(--service-border-color);
    color: var(--service-text-dark);
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
    flex: 1;
}

/* Hide scrollbar completely for Chrome, Safari and Opera */
.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex: 0 0 calc(25% - 9px);
    /* 4 thumbnails visible */
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 100px;
    /* Prevent too small on mobile */
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--service-primary-color);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 32px;
        height: 32px;
    }

    .gallery-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-thumbnails-wrapper {
        gap: 8px;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .thumbnail-item {
        flex: 0 0 calc(25% - 6px);
        min-width: 70px;
    }
}

/* Content Section */
.service-content-section {
    background-color: #FFF7ED;
    padding: 40px 0;
}

.service-detail-new {
    padding: 40px 0;
    background-color: #fff;
}

.content-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--service-primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.service-content-wrapper {
    font-size: 15px;
    line-height: 1.8;
    color: var(--service-text-dark);
    text-align: justify;
}

.service-content-wrapper h2,
.service-content-wrapper h3,
.service-content-wrapper h4 {
    color: var(--service-primary-color);
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
}

.service-content-wrapper h2 {
    font-size: 28px;
}

.service-content-wrapper h3 {
    font-size: 22px;
}

.service-content-wrapper h4 {
    font-size: 18px;
}

.service-content-wrapper p {
    margin-bottom: 20px;
}

.service-content-wrapper ul,
.service-content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.service-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Table Styling - First Row Header */
.service-content-wrapper table thead tr {
    background-color: #aa3021;
}

.service-content-wrapper table thead th {
    background-color: #aa3021;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    border: 1px solid #d4603c;
}

.service-content-wrapper table tbody tr:first-child th {
    background-color: #aa3021;
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    border: 1px solid #d4603c;
}

/* Add borders to all table cells */
.service-content-wrapper table td,
.service-content-wrapper table th {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
}

/* Darker border for header cells */
.service-content-wrapper table thead th,
.service-content-wrapper table tbody tr:first-child th {
    border-color: #d4603c;
}

.btn-booking-cta {
    display: inline-block;
    padding: 20px 40px;
    background-color: var(--service-primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-booking-cta:hover {
    background-color: #8a2719;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 48, 33, 0.3);
}

@media (max-width: 768px) {
    .service-content-section {
        padding: 20px 0;
    }

    .content-section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .service-content-wrapper {
        font-size: 14px;
    }

    .service-content-wrapper h2 {
        font-size: 22px;
    }

    .service-content-wrapper h3 {
        font-size: 18px;
    }

    .service-content-wrapper h4 {
        font-size: 16px;
    }

    /* Table wrapper for horizontal scroll on mobile */
    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
    }

    .service-content-wrapper table {
        width: 100%;
        min-width: 500px;
        /* Minimum width to trigger scrolling */
    }

    .btn-booking-cta {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

.my-5 {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Hidden elements */
.gallery-lightbox-items {
    display: none;
}

/* FAQ Section */
.service-faq-section {
    padding: 30px 0;
}

.faq-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--service-primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border: 1px solid var(--service-border-color);
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--service-primary-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #fef5f4;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: var(--service-primary-color);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    content: '+';
}

.faq-item.active .faq-icon::before {
    content: '−';
}

.faq-question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-answer {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-content {
    padding: 0 24px 24px 64px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--service-text-dark);
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-faq-section {
        padding: 40px 0;
    }

    .faq-section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 14px;
        gap: 12px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 52px;
        font-size: 14px;
    }
}

.single-dich-vu .table {
    background-color: #feebd6;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

/* Red header - Apply class "table-header-red" to table */
.single-dich-vu .table.table-header-red thead tr,
.single-dich-vu .table.table-header-red tbody tr:first-child {
    background-color: #aa3021;
    color: #fff;
}

.single-dich-vu .table.table-header-red thead td,
.single-dich-vu .table.table-header-red thead th,
.single-dich-vu .table.table-header-red tbody tr:first-child th,
.single-dich-vu .table.table-header-red tbody tr:first-child td {
    color: #fff;
    font-weight: 600;
}

/* Round top corners of first row */
.single-dich-vu .table thead tr:first-child th:first-child,
.single-dich-vu .table thead tr:first-child td:first-child,
.single-dich-vu .table tbody tr:first-child th:first-child,
.single-dich-vu .table tbody tr:first-child td:first-child {
    border-top-left-radius: 8px;
}

.single-dich-vu .table thead tr:first-child th:last-child,
.single-dich-vu .table thead tr:first-child td:last-child,
.single-dich-vu .table tbody tr:first-child th:last-child,
.single-dich-vu .table tbody tr:first-child td:last-child {
    border-top-right-radius: 8px;
}

/* Round bottom corners of last row */
.single-dich-vu .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.single-dich-vu .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Contact Form Section */
.service-contact-section {
    padding: 0;
    margin: 60px 0;
}

.contact-background {
    background-image: url('assets/contact-bg.jpg');
    background-size: cover;
    background-position: center right;
    background-color: #1a1a1a;
    padding: 30px 0;
    position: relative;
    width: 100%;
}

.contact-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.75) 80%, rgba(0, 0, 0, 0.60) 100%);
    z-index: 1;
}

.contact-background .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: space-between;
}

.contact-content {
    flex: 0 0 auto;
    max-width: 360px;
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 13px;
    color: #fff;
    margin: 0;
    opacity: 0.85;
    line-height: 1.5;
}

.contact-form-wrapper {
    flex: 0 0 auto;
    max-width: 700px;
    align-self: flex-end;
}

.contact-form-description {
    font-size: 13px;
    color: #fff;
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.5;
    text-align: center;
}

/* CF7 Grid Form Layout (2x2) */
.service-contact-section .wpcf7-form {
    display: block;
}

.contact-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-grid .contact-form-row {
    display: flex;
    gap: 10px;
}

.contact-form-grid .contact-form-row input[type="text"],
.contact-form-grid .contact-form-row input[type="tel"],
.contact-form-grid .contact-form-row input[type="email"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
}

.contact-form-grid input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form-grid input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
}

.contact-form-grid .contact-submit-btn,
.contact-form-grid input[type="submit"] {
    flex: 1;
    padding: 10px 20px;
    background-color: #fff;
    color: var(--service-primary-color);
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.contact-form-grid .contact-submit-btn:hover,
.contact-form-grid input[type="submit"]:hover {
    background-color: var(--service-primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Legacy Horizontal Form - Convert to 2x2 Grid */
.contact-form-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Handle CF7's automatic P tag wrapper */
.contact-form-horizontal p {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    width: 100%;
}

/* Hide CF7's automatic line breaks */
.contact-form-horizontal p br,
.contact-form-horizontal br {
    display: none !important;
}

/* Ensure wrapper spans (CF7's wpcf7-form-control-wrap) respect50% width */
.contact-form-horizontal .wpcf7-form-control-wrap {
    flex: 0 0 calc(50% - 5px) !important;
    width: calc(50% - 5px);
}

.contact-form-horizontal input[type="text"],
.contact-form-horizontal input[type="tel"],
.contact-form-horizontal input[type="email"] {
    width: 100% !important;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
}

.contact-form-horizontal input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form-horizontal input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
}

.contact-form-horizontal .contact-submit-btn,
.contact-form-horizontal input[type="submit"] {
    flex: 0 0 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    padding: 10px 20px;
    background-color: #fff;
    color: var(--service-primary-color);
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.contact-form-horizontal .contact-submit-btn:hover,
.contact-form-horizontal input[type="submit"]:hover {
    background-color: var(--service-primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Legacy Form Styling (fallback for vertical layout) */
.service-contact-section .contact-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.service-contact-section .contact-form-col {
    flex: 1;
}

.service-contact-section input[type="text"],
.service-contact-section input[type="tel"],
.service-contact-section input[type="email"],
.service-contact-section textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
}

.service-contact-section input::placeholder,
.service-contact-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.service-contact-section input:focus,
.service-contact-section textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
}

.service-contact-section textarea {
    min-height: 80px;
    resize: vertical;
    border-radius: 20px;
}

.contact-form-submit {
    text-align: center;
    margin-top: 8px;
}

.service-contact-section .contact-submit-btn,
.service-contact-section input[type="submit"] {
    padding: 12px 60px;
    background-color: #fff;
    color: var(--service-primary-color);
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.service-contact-section .contact-submit-btn:hover,
.service-contact-section input[type="submit"]:hover {
    background-color: var(--service-primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    .contact-background .container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-content {
        max-width: 100%;
    }

    .contact-form-grid .contact-form-row {
        flex-wrap: nowrap;
    }

    .contact-form-horizontal {
        flex-wrap: wrap;
    }

    .contact-form-horizontal input[type="text"],
    .contact-form-horizontal input[type="tel"],
    .contact-form-horizontal input[type="email"] {
        flex: 1 1 calc(50% - 5px);
        min-width: 200px;
    }

    .contact-form-horizontal .contact-submit-btn,
    .contact-form-horizontal input[type="submit"] {
        flex: 1 1 100%;
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .service-contact-section {
        margin: 40px 0;
    }

    .contact-background {
        padding: 35px 0;
    }

    .contact-background::before {
        background: rgba(0, 0, 0, 0.75);
    }

    .contact-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .contact-subtitle {
        font-size: 12px;
    }

    /* Grid form mobile */
    .contact-form-grid .contact-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .contact-form-grid .contact-form-row input[type="text"],
    .contact-form-grid .contact-form-row input[type="tel"],
    .contact-form-grid .contact-form-row input[type="email"],
    .contact-form-grid input[type="submit"] {
        padding: 10px 16px;
        font-size: 12px;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .service-contact-section input[type="text"],
    .service-contact-section input[type="tel"],
    .service-contact-section input[type="email"],
    .service-contact-section textarea {
        padding: 10px 16px;
        font-size: 12px;
    }

    .service-contact-section .contact-submit-btn,
    .service-contact-section input[type="submit"] {
        padding: 10px 40px;
        font-size: 13px;
    }

    .contact-form-horizontal {
        flex-direction: column;
    }

    .contact-form-horizontal input[type="text"],
    .contact-form-horizontal input[type="tel"],
    .contact-form-horizontal input[type="email"] {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .contact-form-horizontal .contact-submit-btn,
    .contact-form-horizontal input[type="submit"] {
        padding: 10px 40px;
        font-size: 12px;
    }
}

/* Related Services Section */
.service-related-section {
    padding: 0;
    background-color: #fff;
}

.related-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--service-text-dark);
    margin-bottom: 40px;
    text-align: left;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.related-service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-service-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background-color: var(--service-bg-light);
}

.related-service-image .related-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.related-service-item:hover .related-img {
    transform: scale(1.05);
}

.related-service-content {
    padding: 20px;
}

.related-service-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--service-text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
    text-transform: uppercase;
    min-height: 44px;
}

.related-service-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--service-primary-color);
    margin: 0;
}

@media (max-width: 992px) {
    .related-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .service-related-section {
        padding: 0;
    }

    .related-section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .related-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-service-content {
        padding: 16px;
    }

    .related-service-title {
        font-size: 14px;
        min-height: auto;
    }

    .related-service-price {
        font-size: 14px;
    }
}