/* --- Basic Page Layout --- */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

/* This rule pushes the main content down
  to make space for your fixed header.
  Adjust this '100px' value to match
  the exact height of your 'header.php'.
*/
.site-main {
    padding-top: 100px; 
}

/* This centers your content on the page */
.site {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* --- WordPress Theme Styles (Minimal) --- */
/* These are styles from the original theme that your page relies on */

.sabbi-page-header {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.sabbi-page-header h1.page-title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.auth-breadcrumb-wrap {
    background-color: #EDF2F6;
    padding: 15px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb.sabbi-breadcrumb {
    padding: 0;
    margin: 0;
    list-style: none;
    background: none;
    text-align: center;
}

.sabbi-breadcrumb li {
    display: inline-block;
    font-size: 0.9rem;
    color: #333;
}

.sabbi-breadcrumb li a {
    color: #DB3243;
    text-decoration: none;
}

.sabbi-breadcrumb li .separator {
    margin: 0 8px;
    color: #888;
}

/* --- Your Custom Styles (-0004) --- */

/* Main Container Styles */
.faq-container-0004 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box; /* Added for consistency */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.faq-section-0004 {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-section-0004.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title-0004 {
    color: #DB3243;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 12px;
}

.section-title-0004::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #DB3243, #ff6b6b);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section-0004:hover .section-title-0004::after {
    width: 100%;
}

.section-title-0004 i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #DB3243, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section-0004:hover .section-title-0004 i {
    transform: scale(1.1) rotate(5deg);
}

/* Content Styles */
.faq-content-0004 {
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
}

.faq-item-0004 {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.faq-question-0004 {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.faq-question-0004:hover {
    color: #DB3243;
}

.faq-icon-0004 {
    transition: transform 0.3s ease;
}

.faq-answer-0004 {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-0004 p {
    margin: 0;
    padding: 1rem 0;
    color: #666;
    line-height: 1.6;
}

/* Download Button Styles */
.download-container-0004 {
    text-align: center;
    margin-bottom: 40px;
}

.download-btn-0004 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #DB3243, #ff6b6b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(219, 50, 67, 0.2);
}

.download-btn-0004:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 50, 67, 0.3);
}

/* Popup Form Styles */
.popup-overlay-0004 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(6 4 4 / 85%);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000; /* High z-index */
    padding-top: 50px;
    overflow-y: auto;
}

.popup-form-0004 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: popupFadeIn 0.3s ease;
    margin: 20px auto;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title-0004 {
    color: #DB3243;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-group-0004 {
    margin-bottom: 20px;
    position: relative;
}

.form-group-0004 label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group-0004 input[type="text"],
.form-group-0004 input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box; /* Added */
}

.form-group-0004 input:focus {
    outline: none;
    border-color: #DB3243;
    background: white;
    box-shadow: 0 0 0 3px rgba(219, 50, 67, 0.1);
}

.error-message-0004 {
    color: #DB3243;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    padding: 5px 10px;
    background: #fff5f5;
    border-radius: 4px;
}

.form-buttons-0004 {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cancel-btn-0004,
.submit-btn-0004 {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn-0004 {
    background: #f1f1f1;
    color: #666;
}

.submit-btn-0004 {
    background: linear-gradient(135deg, #DB3243, #ff6b6b);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn-0004 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn-0004:hover {
    color: #DB3243;
    background: #fff5f5;
}

/* Success Message Styles */
.success-message-0004 {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New Question Submission Section Styles */
.question-submission-0004 {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.question-submission-0004.visible {
    opacity: 1;
    transform: translateY(0);
}

.submission-title-0004 {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.submission-title-0004 i {
    color: #DB3243;
}

.submission-form-0004 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row-0004 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field-0004 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field-0004 label {
    color: #666;
    font-weight: 500;
}

.form-field-0004 input,
.form-field-0004 textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Added */
}

.form-field-0004 input:focus,
.form-field-0004 textarea:focus {
    outline: none;
    border-color: #DB3243;
}

.form-field-0004 textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-question-btn-0004 {
    background: #DB3243;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.submit-question-btn-0004:hover {
    background: #c42a3a;
}

.submit-question-btn-0004:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-container-0004 {
        padding: 1rem;
    }

    .faq-section-0004,
    .question-submission-0004 {
        padding: 1.5rem;
    }

    .form-row-0004 {
        grid-template-columns: 1fr;
    }

    .faq-question-0004 {
        font-size: 0.9rem;
    }

    .faq-answer-0004 p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .faq-container-0004 {
        padding: 0.5rem;
    }

    .faq-section-0004,
    .question-submission-0004 {
        padding: 1rem;
    }

    .submission-title-0004 {
        font-size: 1.2rem;
    }

    .submit-question-btn-0004 {
        padding: 0.8rem 1.5rem;
    }
}

/* FAQ Section Styles */
.faq-section-0004 {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title-0004 {
    /* color: #333; */ /* Overridden by .section-title-0004 */
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.section-title-0004 i {
    color: #DB3243;
}

.faq-item-0004 {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-0004:hover {
    border-color: #DB3243;
    box-shadow: 0 2px 8px rgba(219, 50, 67, 0.1);
}

.faq-question-0004 {
    padding: 1.2rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.faq-question-0004:hover {
    background: #fff5f5;
}

.faq-icon-0004 {
    color: #DB3243;
    transition: transform 0.3s ease;
}

.faq-item-0004.active .faq-icon-0004 {
    transform: rotate(180deg);
}

.faq-answer-0004 {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item-0004.active .faq-answer-0004 {
    padding: 1.2rem;
    max-height: 500px; /* Allow space for content */
    border-top: 1px solid #eee;
}

.faq-answer-0004 p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-answer-0004 ul {
    margin: 1rem 0 0 1.5rem;
    padding-left: 1.5rem;
}

.faq-answer-0004 li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .faq-section-0004 {
        padding: 1.5rem;
    }

    .section-title-0004 {
        font-size: 1.5rem;
    }

    .faq-question-0004 {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer-0004 p,
    .faq-answer-0004 li {
        font-size: 0.9rem;
    }
}