/* Reset & Base Styles */
.tax-file-1301-container {
    direction: rtl;
    font-family: 'David', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

/* Typography */
.tax-file-1301-container *,
.result-content *,
#resultDiv * {
    font-family: 'David', Arial, sans-serif;
}

/* Headers */
.tax-file-1301-container h1, 
.tax-file-1301-container h2, 
.tax-file-1301-container h3,
.result-content h2,
#resultDiv h2 {
    color: #064e86;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'David', Arial, sans-serif;
}

.tax-file-1301-container h1 { font-size: 2.2rem; }
.tax-file-1301-container h2 { font-size: 1.8rem; }
.tax-file-1301-container h3 { font-size: 1.5rem; }

/* Instructions Section */
.instructions {
    background-color: #f8f9fa;
    border-right: 4px solid #064e86;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.instructions li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #064e86;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(6,78,134,0.1);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #064e86;
    font-weight: 600;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #064e86;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'David', Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #064e86;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6,78,134,0.1);
}

/* Conditional Sections */
#resident-additional-questions,
#trust-specific-questions,
#young-container,
.conditional-section {
    margin-right: 20px;
    padding: 20px;
    border-right: 3px solid #94770d;
    background-color: rgba(6,78,134,0.02);
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 0 5px rgba(6,78,134,0.1);
}

/* Questions Styling */
.question-container {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(6,78,134,0.05);
    transition: all 0.3s ease;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.question-note {
    font-size: 0.8rem;
    color: #064e86;
    margin: 10px;
    padding-right: 15px;
    border-right: 1px solid #064e86;
    background-color: rgba(6,78,134,0.05);
    padding: 10px;
    border-radius: 4px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'David', Arial, sans-serif;
}

.radio-option input[type="radio"] {
    margin-left: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Results Section */
.result-content,
#resultDiv {
    direction: rtl;
    background: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(6,78,134,0.1);
    border: 1px solid rgba(6,78,134,0.2);
}

.result-content h2,
#resultDiv h2 {
    color: #064e86;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.result-content strong,
#resultDiv strong {
    color: #064e86;
    font-weight: 600;
}

#resultDiv p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#summaryList {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

#summaryList li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(6,78,134,0.1);
}

/* Submit Button */
.submit-button {
    background-color: #064e86;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'David', Arial, sans-serif;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.submit-button:hover {
    background-color: #043c66;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6,78,134,0.2);
}

/* Section Notes */
.section-note {
    font-size: 0.95rem;
    color: #064e86;
    margin: 15px 0;
    padding: 12px;
    background-color: rgba(6,78,134,0.05);
    border-radius: 4px;
    border-right: 1px solid #94770d;
}

/* Trust and Special Sections */
.trust-section,
.non-resident-trust-section {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(6,78,134,0.02);
    border-radius: 8px;
    border: 1px solid rgba(6,78,134,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tax-file-1301-container {
        padding: 10px;
    }

    .form-group,
    .question-container {
        padding: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-group label {
        margin-bottom: 8px;
    }

    #resident-additional-questions,
    #trust-specific-questions,
    #young-container,
    .conditional-section {
        margin-right: 10px;
        padding: 15px;
    }

    .submit-button {
        width: 100%;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .tax-file-1301-container {
        max-width: 100%;
        padding: 0;
    }

    .submit-button {
        display: none;
    }

    .question-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}










/* Add to style.css */
/* Popup Styles */
.popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0);
}

.popup-overlay.active {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.popup-content {
    position: relative;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    direction: rtl;
    box-shadow: 0 5px 20px rgba(6,78,134,0.2);
    font-family: 'David', Arial, sans-serif;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #064e86;
    background: none;
    border: none;
    padding: 5px;
    transition: all 0.2s ease;
}

.popup-close:hover {
    transform: scale(1.1);
    color: #043c66;
}

.popup-title {
    color: #064e86;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(6,78,134,0.1);
    font-family: 'David', Arial, sans-serif;
}

.popup-result {
    margin-bottom: 20px;
}

.popup-result p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.popup-summary {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.popup-summary li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(6,78,134,0.1);
}

.popup-actions {
    margin-top: 20px;
    text-align: center;
}

.popup-actions {
    text-align: center;
    margin-top: 20px;
}

.new-check-button {
    background-color: #064e86;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'David', Arial, sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-check-button:hover {
    background-color: #043c66;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 20px;
    }
}



.warning-message {
    
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

