/* Service Section 7-1 to 7-4 Horizontal Layout */

/* Container for items 7-1 to 7-4 */
#section7 .service-items-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* Target items 7-1 to 7-4 for horizontal layout */
#section7 > .form-group:nth-child(2),
#section7 > .form-group:nth-child(3),
#section7 > .form-group:nth-child(4),
#section7 > .form-group:nth-child(5) {
    flex: 1 1 calc(25% - 15px);
    min-width: 200px;
    margin-right: 0 !important;
}

/* Ensure service visual grid takes full width within each item */
#section7 > .form-group:nth-child(2) .service-visual-grid,
#section7 > .form-group:nth-child(3) .service-visual-grid,
#section7 > .form-group:nth-child(4) .service-visual-grid,
#section7 > .form-group:nth-child(5) .service-visual-grid {
    width: 100% !important;
}

/* Service option adjustments for horizontal layout */
#section7 > .form-group:nth-child(2) .service-option,
#section7 > .form-group:nth-child(3) .service-option,
#section7 > .form-group:nth-child(4) .service-option,
#section7 > .form-group:nth-child(5) .service-option {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive breakpoint - adjust grid on smaller screens */
@media (max-width: 1200px) {
    .service-horizontal-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-horizontal-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-horizontal-wrapper .service-option {
        padding: 12px;
    }

    .service-horizontal-wrapper .service-question {
        font-size: 0.9rem;
    }

    .service-horizontal-wrapper .radio-option {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Wrap items 7-1 to 7-4 in a flex container */
#section7 > .form-group:nth-child(1) {
    margin-bottom: 20px;
}

/* Compact card layout for service options */
.service-horizontal-wrapper {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    align-items: stretch;
}

/* Compact card style */
.service-horizontal-wrapper .form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-horizontal-wrapper .service-visual-grid {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-horizontal-wrapper .service-option {
    background: var(--surface-elevated);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.service-horizontal-wrapper .service-header {
    background: var(--surface-dark);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    margin: -1px -1px 0 -1px;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-horizontal-wrapper .service-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.5px;
    padding: 0 40px; /* Add padding to avoid overlap with number */
}

/* Compact radio options */
.service-horizontal-wrapper .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.service-horizontal-wrapper .service-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.service-horizontal-wrapper .radio-option {
    padding: 16px 20px;
    font-size: 0.95rem;
    background: var(--surface-dark);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.service-horizontal-wrapper .radio-option:hover {
    background: var(--surface-elevated);
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.service-horizontal-wrapper .radio-option:has(input:checked) {
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.service-horizontal-wrapper .radio-option span {
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    text-align: center;
}

/* Scroll indicator for mobile */
.service-horizontal-wrapper::-webkit-scrollbar {
    height: 6px;
}

.service-horizontal-wrapper::-webkit-scrollbar-track {
    background: var(--surface-dark);
    border-radius: 3px;
}

.service-horizontal-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.service-horizontal-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Ensure 7-5 displays normally (not in horizontal wrapper) */
#section7 > .form-group:nth-child(6) .service-visual-grid {
    display: block !important;
}

#section7 > .form-group:nth-child(6) .service-option {
    background: transparent;
    border: none;
    padding: 0;
    display: block;
}

/* Make expectations grid vertical for section 7-5 */
#section7 > .form-group:nth-child(6) .expectations-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#section7 > .form-group:nth-child(6) .expectation-card {
    width: 100%;
    padding: 20px 24px;
    background: var(--surface-elevated);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

#section7 > .form-group:nth-child(6) .expectation-card:hover {
    border-color: var(--accent-gold);
    transform: translateX(5px);
    background: var(--surface-dark);
}

#section7 > .form-group:nth-child(6) .expectation-card:has(input:checked) {
    style-male-mode-1.jpg
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 500;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

#section7 > .form-group:nth-child(6) .expectation-content {
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: left;
}

#section7 > .form-group:nth-child(6) .service-image {
    display: block !important;
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-bottom: 20px;
}

#section7 > .form-group:nth-child(6) .service-header {
    margin-bottom: 20px;
}

#section7 > .form-group:nth-child(6) .service-question {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 16px;
}

#section7 > .form-group:nth-child(6) .service-question::before {
    display: none;
}

#section7 > .form-group:nth-child(6) .service-description,
#section7 > .form-group:nth-child(6) .service-subtitle {
    display: block !important;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

#section7 > .form-group:nth-child(6) .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#section7 > .form-group:nth-child(6) .checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#section7 > .form-group:nth-child(6) .checkbox-option:hover {
    border-color: var(--border-color);
    transform: translateY(-1px);
}

/* Responsive design for section 7-5 */
@media (max-width: 768px) {
    #section7 > .form-group:nth-child(6) .expectations-grid {
        gap: 12px;
        margin-top: 16px;
    }

    #section7 > .form-group:nth-child(6) .expectation-card {
        padding: 16px 20px;
    }

    #section7 > .form-group:nth-child(6) .expectation-content {
        font-size: 0.95rem;
    }
}