/* Base styles */
.guided-selling-section {
    margin: 20px 0;
    padding: 25px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.guided-selling-section p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #2c3338;
}

/* Button styles */
.guided-selling-button-container-left {
    text-align: left;
    margin-top: 15px;
}

.guided-selling-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guided-selling-button:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.guided-selling-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guided-selling-button[type="submit"] {
    background-color: #2271b1;
    min-width: 160px;
    height: 46px;
    font-size: 15px;
    padding: 0 28px;
}

.guided-selling-button[type="submit"]:hover {
    background-color: #135e96;
}

.guided-selling-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Submit container */
.submit-container {
    margin-top: 25px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Question styles */
.question {
    margin-bottom: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 10px;
}

.question p {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.question label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.question label:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.question input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    accent-color: #2271b1;
}

.validation-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

/* Spinner */
.guided-selling-spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results section */
.guided-selling-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product {
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product h3 {
    font-size: 15px;
    margin: 10px 0;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

.product p.price {
    font-size: 15px;
    font-weight: 600;
    color: #2271b1;
    margin: 8px 0;
}

.product a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product a:hover {
    color: #135e96;
    text-decoration: none;
}

.start-over-container {
    margin-top: 25px;
    text-align: center;
}

/* Recommendations title */
.recommendations-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 10px;
}

.recommendations-subtitle {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 20px;
}

/* Error message */
.error-message {
    padding: 20px;
    background-color: #fff;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.error-message h3 {
    margin: 0 0 10px 0;
    color: #dc2626;
    font-size: 16px;
    font-weight: 600;
}

.error-message p {
    margin: 0 0 15px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guided-selling-section {
        padding: 20px;
        margin: 15px 0;
    }

    .guided-selling-button {
        width: 100%;
        height: 42px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .submit-container {
        text-align: center;
        justify-content: center;
    }

    .guided-selling-products {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .question {
        padding: 15px;
    }
    
    .options-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .question label {
        width: 100%;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .guided-selling-section {
        padding: 15px;
    }

    .question {
        padding: 15px;
    }

    .question label {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .guided-selling-products {
        grid-template-columns: 1fr;
    }
}
