/* =========================================
   SunWinWin Agri Solar Quiz
   Step 2 - Quiz UI
   ========================================= */

.sunwinwin-agri-quiz {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    font-family: inherit;
}


/* =========================================
   Header
   ========================================= */

.agri-quiz-header {
    text-align: center;
    margin-bottom: 35px;
}

.agri-quiz-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.agri-quiz-header p {
    margin: 0;
    font-size: 16px;
}


/* =========================================
   Progress
   ========================================= */

.agri-quiz-progress {
    margin-bottom: 35px;
}

.agri-quiz-progress-text {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.agri-quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.agri-quiz-progress-fill {
    width: 12.5%;
    height: 100%;
    background: #1f7a4d;
    transition: width 0.3s ease;
}


/* =========================================
   Quiz body
   ========================================= */

.agri-quiz-body {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 35px;
}

.agri-quiz-step {
    display: none;
}

.agri-quiz-step.active {
    display: block;
}


/* =========================================
   Step heading
   ========================================= */

.agri-quiz-step-heading {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.agri-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #1f7a4d;
    color: #fff;

    font-weight: 700;
}

.agri-quiz-step-heading h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.agri-quiz-step-heading p {
    margin: 0;
}


/* =========================================
   Form fields
   ========================================= */

.agri-form-group {
    margin-bottom: 28px;
}

.agri-form-group > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.agri-form-group > label span {
    color: #c00;
}

.agri-form-group input[type="text"],
.agri-form-group input[type="number"],
.agri-form-group select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
}


/* =========================================
   Option cards
   ========================================= */

.agri-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.agri-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.agri-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agri-option span {
    display: block;
    padding: 15px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.agri-option:hover span {
    border-color: #1f7a4d;
}

.agri-option input:checked + span {
    border-color: #1f7a4d;
    background: #eef8f2;
}


/* =========================================
   System cards
   ========================================= */

.agri-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.agri-system-card {
    position: relative;
    cursor: pointer;
}

.agri-system-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agri-system-card-inner {
    min-height: 150px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    text-align: center;

    transition: all 0.2s ease;
}

.agri-system-card:hover .agri-system-card-inner {
    border-color: #1f7a4d;
}

.agri-system-card input:checked + .agri-system-card-inner {
    border-color: #1f7a4d;
    background: #eef8f2;
}

.agri-system-card-inner strong {
    font-size: 24px;
}

.agri-system-dimensions {
    font-weight: 600;
}

.agri-system-unknown {
    grid-column: span 3;
}

.agri-system-unknown .agri-system-card-inner {
    min-height: 100px;
}

.agri-system-unknown small {
    font-size: 14px;
}


/* =========================================
   Energy goal cards
   ========================================= */

.agri-goal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.agri-goal-card {
    cursor: pointer;
}

.agri-goal-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agri-goal-card span {
    display: block;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.agri-goal-card input:checked + span {
    border-color: #1f7a4d;
    background: #eef8f2;
}

.agri-goal-card strong {
    display: block;
    margin-bottom: 6px;
}

.agri-goal-card small {
    display: block;
}


/* =========================================
   Conditional fields
   ========================================= */

.agri-conditional {
    display: none;
}

.agri-conditional.visible {
    display: block;
}


/* =========================================
   Errors
   ========================================= */

.agri-field-error {
    margin-top: 6px;
    font-size: 14px;
    color: #c00;
}


/* =========================================
   Navigation
   ========================================= */

.agri-quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.agri-quiz-button {
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.agri-quiz-next {
    margin-left: auto;
    background: #1f7a4d;
    color: #fff;
}

.agri-quiz-back {
    background: #eee;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 700px) {

    .sunwinwin-agri-quiz {
        padding: 15px;
        margin: 20px auto;
    }

    .agri-quiz-header h2 {
        font-size: 26px;
    }

    .agri-quiz-body {
        padding: 20px;
    }

    .agri-option-grid,
    .agri-system-grid,
    .agri-goal-grid {
        grid-template-columns: 1fr;
    }

    .agri-system-unknown {
        grid-column: span 1;
    }

    .agri-quiz-step-heading h3 {
        font-size: 20px;
    }

}

/* =========================================
   RESULT SCREEN
   ========================================= */

.agri-result-screen {
    padding: 20px 0 40px;
}


.agri-result-header {
    text-align: center;
    margin-bottom: 35px;
}


.agri-result-badge {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}


.agri-result-header h2 {
    margin: 0 0 12px;
}


.agri-result-header p {
    max-width: 700px;
    margin: 0 auto;
}


.agri-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


.agri-result-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
}


.agri-result-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}


.agri-result-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}


.agri-result-card small {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}


.agri-result-highlight {
    grid-column: span 1;
}


.agri-result-summary {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    background: #f5f5f5;
}


.agri-result-summary h3 {
    margin-top: 0;
}


.agri-result-actions {
    margin-top: 30px;
    text-align: center;
}


@media (max-width: 900px) {

    .agri-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .agri-result-grid {
        grid-template-columns: 1fr;
    }

    .agri-result-card strong {
        font-size: 24px;
    }

}