 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.qspinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(24, 38, 123, 0.2);
    border-top-color: #18267B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
}

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

.question-content {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.question-container {
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    background: #67add80b;
    border-radius: 20px;
    overflow: hidden;
}

.qheader {
    background: #FAb600;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 10px;
}

.qheader h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #666d70;
}

.qheader p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 10px;
}

.question-block {
    margin-bottom: 70px;
    /* padding-bottom: 40px; */
    /* border-bottom: 2px solid #18267B ; */
}

.question-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.icon-pushdown::before {
    content: "\23FC";
    font-style: normal; /* Rimuove l'eventuale corsivo del tag <i> */
    font-size: 48px;    
    font-weight: 100;
    padding-left: 10px;
    display: inline-block;
}
.icon-pushdown {
  color: gray;
  transition: color 0.5s ease, transform 0.5s ease;
}
.qheader-icon{
    padding: 20px;
    /* border: #18267B 1px solid; */
    border-radius:10px;
    background-color: #67add83b; /*#18267B;*/
    transition: all 1.5s ease-in-out; 
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.question-block h3 {
    font-size: 1.4rem;
    color: #2d3748;
    font-weight: 600;
    margin-right: 20px;
}
.question-off-mode{
    opacity: .5;
    border-radius:10px;
    padding: 19px;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 25px;
}

.option {
    position: relative;
    cursor: pointer;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.option-label:hover {
    background: #f1f5f9;
    border-color: #18267B;
    transform: translateX(5px);
}

.option input[type="radio"]:checked + .option-label {
    background: linear-gradient(135deg, #18267B15 0%, #764ba215 100%);
    border-color: #18267B;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    font-weight: 700;
    color: #18267B;
    margin-right: 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.option input[type="radio"]:checked + .option-label .option-number {
    background: #18267B;
    color: white;
    border-color: #18267B;
    transform: scale(1.1);
}

.option-text {
    flex: 1;
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
}

.submit-container {
    padding: 30px;
    text-align: start;
}

.qsubmit-btn {
    background: #FAb600;
    color: rgb(57, 57, 57);
    border: none;
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
}

.qsubmit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(57,57,57);
}

.qsubmit-btn:active {
    transform: translateY(0);
}

.qprogress-bar {
    height: 12px;
    background: #e2e8f0;
    position: relative;
    border-radius: 5px;
    width: 98%;
    margin: 8px auto;
}

.qprogress-fill {
    height: 100%;
    background: linear-gradient(90deg, #18267B 0%, #67AdD8 100%);
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.answer-form-container {
    width: 100%;
}
.answer-wrap{
    margin: 2%;
}

#contatti_risposta_form{
    padding: 6%;
    margin-top: 50px;
}
.answer-header {
    padding: 5% 0;
}

.answer-header p {
    color: #18267B;
    font-size: 1.3rem;   
    font-weight: 600;
    text-align: justify;
}

.answer-messaggio {
    background: #f0f7ff;
    border-left: 4px solid #18267B ;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.answer-messaggio p {
    color: #555;
    line-height: 1.6;
    padding: 0 20px;
    text-align: justify;
}

.answer-consiglio {
    background: #fff9e6;
    border-left: 4px solid #FAb600;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.answer-consiglio strong {
    color:  #18267B;
    display: block;
    margin-bottom: 5px;
}

.answer-consiglio p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.answer-form-group {
    margin-bottom: 20px;
}

.answer label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.answer-position-cta {
    text-align: center;
    margin: 40px 0;
}

.btn-answer-cta {
    font-style: normal;
    text-transform: none;
    font-size: 1.4rem;
    line-height: 1.2 !important;
    font-weight: 700;
    letter-spacing: 0em;
    padding: 1.0em 2.0em;
    transition-duration: 0.3s;
    border-radius: 0.3em;
    transition-timing-function: ease;
    --btn-height: calc(1.2em + 2 * 1.0em);
    background:  #67add8;
    border-color: transparent;
    border-image: none;
    color: #fff !important;
}

.answer-success-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50vh;
    padding: 4%;
}

.answer-success-message h4, 
.answer-success-message p {
    text-align: center;
    color: #18267B;
}

.answer-success-message p{
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .header {
        padding: 30px 20px;
    }

    .question-container {
        padding: 30px 20px;
    }

    .option-label {
        padding: 15px;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .qsubmit-btn {
        width: 100%;
        padding: 16px 30px;
    }
}