/**
 * GIC Test - Estilos para tema WordPress
 * Arquivo: static/gic-test.css
 */

.gic-test-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gic-test-loading {
    text-align: center;
    padding: 60px 20px;
}

.gic-test-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Progress Bar */
.gic-progress {
    margin-bottom: 30px;
}

.bg-color-gray-3 {
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 40px;
}

.bg-color-purple {
    background-color: #66113f;
}

.progress {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    font-weight: bold;
    min-width: 50px;
}

.round {
    border-radius: 10px;
}

.round-left {
    border-radius: 10px 0 0 10px;
}

/* Pre Content */
.gic-pre-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.gic-pre-content img {
    max-width: 100%;
    height: auto;
}

/* Questions */
.gic-questions-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.gic-questions-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.gic-question {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gic-question-statement {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.gic-answers {
    margin-top: 15px;
}

.gic-answer-option {
    padding: 10px;
    margin-top: 10px;
    background: white;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.gic-answer-option:hover {
    background-color: #f0f0f0;
}

.gic-answer-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.gic-answer-option label {
    cursor: pointer;
    margin: 0;
    padding-left: 8px;
    user-select: none;
}

/* Radio button checked customization */
.form-check-input:checked {
    background-color: #66113f !important;
    border-color: #66113f !important;
}

/* Buttons */
.gic-test-wrapper .btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.gic-test-wrapper .btn.bg-color-purple {
    background-color: #66113f;
    color: white;
}

.gic-test-wrapper .btn.bg-color-purple:hover {
    background-color: #92185a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 17, 63, 0.3);
}

.gic-test-wrapper .btn.sending {
    pointer-events: none;
    opacity: 0.7;
}

.gic-test-wrapper .btn.sending .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: gic-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.gic-test-wrapper .btn:not(.sending) .spinner {
    display: none;
}

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

/* Spinner (loading) */
.spinner.large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 17, 63, 0.3);
    border-top-color: #66113f;
    border-radius: 50%;
    animation: gic-spin 0.8s linear infinite;
    display: inline-block;
}

.spinner.sending {
    display: inline-block;
}

/* Diagnosis Result */
.gic-diagnosis-result {
    padding: 40px 20px;
    line-height: 1.8;
}

.gic-diagnosis-result h2,
.gic-diagnosis-result h3 {
    margin-bottom: 20px;
}

.gic-diagnosis-result img {
    margin: 30px 0;
}

.gic-diagnosis-result .tac {
    text-align: center;
}

.gic-diagnosis-result .bg-color-golden {
    background-color: #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

/* Utility Classes */
.gic-test-wrapper .mt-05r {
    margin-top: 0.5rem;
}

.gic-test-wrapper .mt-015r {
    margin-top: 0.15rem;
}

.gic-test-wrapper .mt-2r {
    margin-top: 2rem;
}

.gic-test-wrapper .mb-2r {
    margin-bottom: 2rem;
}

.gic-test-wrapper .ml-025r {
    margin-left: 0.25rem;
}

.gic-test-wrapper .p-1r {
    padding: 1rem;
}

.gic-test-wrapper .tac {
    text-align: center;
}

.gic-test-wrapper .c-white {
    color: white;
}

.gic-test-wrapper .c-purple {
    color: #66113f;
}

.gic-test-wrapper .jc-c {
    justify-content: center;
}

.gic-test-wrapper .df {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .gic-questions-title {
        font-size: 20px;
    }

    .gic-question-statement {
        font-size: 16px;
    }

    .gic-test-wrapper .btn {
        width: 100%;
        text-align: center;
    }

    .gic-diagnosis-result img {
        max-width: 100%;
        height: auto;
    }
}

/* Bootstrap Grid Simplified (apenas se necessário) */
.gic-test-wrapper .container-xg {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.gic-test-wrapper .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.gic-test-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.gic-test-wrapper .col,
.gic-test-wrapper .col-lg-12,
.gic-test-wrapper .col-lg-8,
.gic-test-wrapper .col-md-10,
.gic-test-wrapper .col-md-7,
.gic-test-wrapper .col-md-5 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.gic-test-wrapper .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .gic-test-wrapper .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .gic-test-wrapper .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .gic-test-wrapper .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .gic-test-wrapper .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .gic-test-wrapper .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
}

/* Bootstrap Utilities */
.gic-test-wrapper .img-fluid {
    max-width: 100%;
    height: auto;
}
