/**
 * Public Form Styles
 */

 @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

.yn-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.yn-form-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d2327;
}

.yn-form-progress {
    margin-bottom: 30px;
    padding: 15px;
    background: #f0f0f1;
    border-radius: 4px;
}

.yn-form-progress-text {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1d2327;
}

.yn-form-progress-bar {
    width: 100%;
    height: 8px;
    background: #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.yn-form-progress-fill {
    height: 100%;
    background: #78b93c;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.yn-form-questions {
    margin-bottom: 30px;
}

.yn-form-question {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.yn-form-question:hover {
    border-color: #78b93c;
}

.yn-form-question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d2327;
    line-height: 1.5;
}

.yn-form-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.yn-form-option {
    flex: 1;
    min-width: 120px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.yn-form-option:hover {
    border-color: #8456d2;
    background: #f8f0fc;
    color: #1d2327;

}

.yn-form-option--yes {
    /* Neutral color - same as default */
}

.yn-form-option--yes:hover {
    /* Neutral hover - same as default */
}

.yn-form-option--no {
    /* Neutral color - same as default */
}

.yn-form-option--no:hover {
    /* Neutral hover - same as default */
}

.yn-form-option--selected {
    background: #8456d2;
    color: #fff;
    border-color: #8456d2;
}

.yn-form-submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.yn-form-submit {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    background: #78b93c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.yn-form-submit:hover:not(:disabled) {
    background: #713ccd;
}

.yn-form-submit:disabled {
    background: #dcdcde;
    color: #8c8f94;
    cursor: not-allowed;
}

.yn-form-error {
    color: #d63638;
    padding: 15px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    border-radius: 4px;
}

/* Results Page */
.yn-form-results {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

.yn-form-results-description {
    margin: 0 0 30px 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #1d2327;
}

.yn-form-results-description p {
    margin: 0 0 12px 0;
    font-size: 17px;
    line-height: 1.7;
}

.yn-form-results-description p:last-child {
    margin-bottom: 0;
}

.yn-form-results-description strong {
    font-weight: 600;
    color: #1d2327;
}

.yn-form-results-description em {
    font-style: italic;
}

.yn-form-results-description a {
    color: #8456d2;
    text-decoration: underline;
    font-weight: 500;
}

.yn-form-results-description a:hover {
    color: #8456d2;
    text-decoration: none;
}

.yn-form-results-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d2327;
}

.yn-form-results-meta {
    margin-bottom: 30px;
    padding: 15px;
    background: #f0f0f1;
    border-radius: 4px;
}

.yn-form-results-meta p {
    margin: 0;
    color: #50575e;
}

.yn-form-results-content {
    margin-bottom: 30px;
}

.yn-form-result-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}

.yn-form-result-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d2327;
}

.yn-form-result-answer {
    font-weight: normal;
    color: #50575e;
    font-size: 16px;
}

.yn-form-feedback {
    padding: 15px;
    background: #e8efe3;
    border-left: 4px solid #78b93c;
    border-radius: 4px;
    line-height: 1.6;
    color: #1d2327;
}

.yn-form-feedback strong {
    font-weight: 600;
}

.yn-form-feedback em {
    font-style: italic;
}

.yn-form-feedback a {
    color: #800080;
    text-decoration: underline;   

}

.yn-form-feedback a:hover {
    color: #800080;
}

.yn-form-results-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dcdcde;
}

.yn-form-results-footer-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #dcdcde;
    font-size: 17px;
    line-height: 1.7;
    color: #1d2327;
}

.yn-form-results-footer-description p {
    margin: 0 0 12px 0;
}

.yn-form-results-footer-description p:last-child {
    margin-bottom: 0;
}

.yn-form-results-footer-description strong {
    font-weight: 600;
}

.yn-form-results-footer-description em {
    font-style: italic;
}

.yn-form-results-footer-description a {
    color: #8456d2;
    text-decoration: underline;
    font-weight: 500;
}

.yn-form-results-footer-description a:hover {
    text-decoration: none;
}

.yn-form-pdf-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #78B93C;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.yn-form-pdf-button:hover {
    background: #8456D2;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .yn-form-container,
    .yn-form-results {
        padding: 15px;
    }

    .yn-form-title,
    .yn-form-results-title {
        font-size: 24px;
    }

    .yn-form-question-text {
        font-size: 16px;
    }

    .yn-form-options {
        flex-direction: column;
    }

    .yn-form-option {
        width: 100%;
    }

    .yn-form-submit {
        width: 100%;
        padding: 15px;
    }
}

/* Print Styles for PDF */
@media print {
    body {
        background: #fff;
    }

    header,
    footer,
    nav,
    .yn-form-pdf-button,
    .yn-form-results-actions,
    .yn-form-progress {
        display: none !important;
    }

    .yn-form-container,
    .yn-form-results {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .yn-form-title,
    .yn-form-results-title {
        font-size: 24px;
        margin-bottom: 20px;
        page-break-after: avoid;
    }

    .yn-form-question,
    .yn-form-result-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #000;
        padding: 15px;
    }

    .yn-form-option {
        border: 1px solid #000;
    }

    .yn-form-feedback {
        border-left: 2px solid #000;
        background: #f9f9f9;
    }

    .yn-form-results-meta {
        background: #f9f9f9;
        border: 1px solid #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
}
