/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.row {
    display: flex;
    flex-direction: row;
    padding: 1em;
    gap: 12px;
    align-items: stretch;
}
.row-question {
    align-items: center;
    padding: 1.2em;
    border-radius: 4px;
}
.row-question:nth-child(even) {
    background-color: #f9f9f9;
}
.row-question:nth-child(odd) {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}
.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col p {
    margin: 0;
    line-height: 1.5;
}

/* Column widths */
.col.span_1 {
    width: calc(8.333333% - 12px);
    min-width: 60px;
}

.col.span_2 {
    width: calc(16.666666% - 12px);
}

.col.span_3 {
    width: calc(25% - 12px);
}

.col.span_4 {
    width: calc(33.333333% - 12px);
}

.col.span_5 {
    width: calc(41.666666% - 12px);
}

.col.span_6 {
    width: calc(50% - 6px);
}

.col.span_7 {
    width: calc(58.333333% - 12px);
}

.col.span_8 {
    width: calc(66.666666% - 12px);
}

.col.span_9 {
    width: calc(75% - 12px);
}

.col.span_10 {
    width: calc(83.333333% - 12px);
}

.col.span_11 {
    width: calc(91.666666% - 12px);
}

.col.span_12 {
    width: 100%;
}

/* Main content */
.main-content {
    margin: 24px;
}

.luxx-spacer-to-page-end {
    height: calc(100vh - 600px);
}
.luxx-teaser-spacer-to-page-end {
    height: calc(100vh - 700px);
}
/* Question header styling */
.row-question:first-of-type {
    font-weight: 600;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
}

.row-question:first-of-type .col {
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Radio button alignment in questions */
.row-question .col.span_1 label {
    text-align: center;
    margin-bottom: 0;
}

/* Enhanced radio button styling for questions */
.row-question .col.span_1 {
    padding: 0;
}

.row-question .col.span_1 label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60px;
    margin: 0;
    cursor: pointer;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.row-question .col.span_1 label:hover {
    border-color: #0073aa;
    background-color: #f5f5f5;
}

.row-question .col.span_1 input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.row-question .col.span_1 input[type="radio"]:checked + label,
.row-question .col.span_1 label input[type="radio"]:checked {
    border-color: #28a745;
    background-color: #e8f5e9;
}

.row-question .col.span_1 label::after {
    content: attr(data-value);
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.row-question .col.span_1 input[type="radio"]:checked ~ ::after {
    content: "✓";
    color: #28a745;
    font-size: 24px;
}

/* Better visual feedback */
.row-question .col.span_1 input[type="radio"]:checked + label::before {
    content: "✓";
    position: absolute;
    font-size: 24px;
    color: #28a745;
    font-weight: bold;
}

.row-question .col.span_1 input[type="radio"]:checked + label::after {
    display: none;
}

/* Form Styling */
form.luxx-test-form {
    max-width: 100%;
    width: 100%;;
}

.luxx-test-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
}

.luxx-test-form input[type="text"],
.luxx-test-form input[type="email"],
.luxx-test-form input[type="tel"],
.luxx-test-form select {
    width: 100%;
    padding: 12px 14px !important;
    margin-top: 6px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.luxx-test-form input[type="text"]:focus,
.luxx-test-form input[type="email"]:focus,
.luxx-test-form input[type="tel"]:focus,
.luxx-test-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.luxx-test-form input[type="text"]::placeholder,
.luxx-test-form input[type="email"]::placeholder,
.luxx-test-form input[type="tel"]::placeholder {
    color: #999;
}

.luxx-test-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 36px;
}

/* Checkbox & Radio Styling */
.luxx-test-form input[type="checkbox"],
.luxx-test-form input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #0073aa;
    vertical-align: middle;
}

.luxx-test-form input[type="checkbox"] + label,
.luxx-test-form input[type="radio"] + label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Button Styling */
.luxx-test-form button {
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #0073aa;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.luxx-test-form button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.luxx-test-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.2);
}

.luxx-test-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.luxx-test-form button[type="button"] {
    background-color: #666;
}

.luxx-test-form button[type="button"]:hover {
    background-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quiz__item-question {
  padding: 1em 0;
}

.quiz__item-possibility {
  padding: 0 1em;
}

/* Responsive design */
@media (max-width: 768px) {
    .row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .col.span_6 {
        width: 100%;
    }

    .col.span_12 {
        width: 100%;
    }

    .luxx-test-form button {
        width: 100%;
        margin-top: 8px;
    }

    .row-question {
        flex-wrap: wrap;
    }

    .row-question .col.span_6 {
        width: 100%;
    }

    .row-question .col.span_1 {
        width: calc(16.666666% - 8px);
        min-width: auto;
    }
}
