:root {
    --quiz-green: #a2c617;
    --quiz-text: #333;
}

.quiz-question-container {
    margin-bottom: 2rem;
    font-family: sans-serif;
    /*padding-left: 100px;*/
    /*padding-right: 100px;*/
}

@media (max-width: 768px) {
    .quiz-question-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .quiz-input-wrapper{
        padding: 0.5rem 1rem 0.5rem 2rem !important;
    }
}

.question-text {
    font-weight: bold;
    color: var(--quiz-text);
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.answer-section {
    position: relative;
}

.quiz-input-wrapper {
    position: relative;
    border: 2px solid var(--quiz-green);
    background: #fff;
    padding: 1rem 1.5rem 1rem 3.5rem;
    margin-bottom: 1.5rem;
}

.status-icon {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 4rem;
    line-height: 1;
    font-weight: bold;
    z-index: 11;
}

/* Stylized Pencil Icon */
.quiz-input-wrapper::before {
    content: '';
    position: absolute;
    left: -22px;
    top: -18px;
    width: 38px;
    height: 76px;
    background-image: url('../Icons/pencil.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-12deg);
    z-index: 10;
}

.quiz-answer-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.quiz-answer-label {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: #333;
    white-space: nowrap;
    margin-bottom: 0;
    padding: 0.5rem 0;
}

.quiz-answer-input, 
.quiz-answer-input:focus,
.quiz-answer-input:active,
.quiz-answer-input:disabled,
.is-solved .quiz-answer-input,
.is-failed .quiz-answer-input {
    flex: 1;
    border: none !important;
    border-bottom: 1px dotted #999 !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    width: 100%;
    outline: none !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #333 !important;
    opacity: 1 !important; /* Prevent browser from dimming disabled input */
}

.quiz-answer-input::placeholder {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: #ccc !important;
    opacity: 1;
}

.quiz-answer-input:focus {
    border-bottom-style: solid !important;
    border-bottom-color: var(--quiz-green) !important;
}

.quiz-check-btn {
    background-color: var(--quiz-green);
    border-color: var(--quiz-green);
    color: #fff;
    padding: 0.6rem 2rem;
    font-weight: bold;
    border-radius: 0;
    text-transform: none;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.quiz-check-btn:hover, 
.quiz-check-btn:focus {
    background-color: #8fb114;
    border-color: #8fb114;
    color: #fff;
}

.quiz-check-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
}

.feedback-message {
    margin-top: 1rem;
}

.is-solved .quiz-input-wrapper {
    border-color: #28a745;
}

.is-failed .quiz-input-wrapper {
    border-color: #dc3545;
}

.attempts-info {
    margin-top: 1rem;
    font-size: 0.85rem;
}
