/* --- 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 */
.policies-container-0004 {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.policy-section-0004 {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(219, 50, 67, 0.1);
}

.policy-section-0004:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(219, 50, 67, 0.15);
    border-color: rgba(219, 50, 67, 0.2);
}

.policy-section-0004::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #DB3243, #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-section-0004:hover::before {
    transform: scaleX(1);
}

.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);
}

.policy-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);
}

.policy-section-0004:hover .section-title-0004 i {
    transform: scale(1.1) rotate(5deg);
}

/* Content Styles */
.policy-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;
}

.policy-content-0004 p {
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 18px;
}

.policy-content-0004 p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: #DB3243;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-section-0004:hover .policy-content-0004 p::before {
    opacity: 1;
}

.policy-content-0004 ul {
    list-style-type: none;
    margin: 15px 0;
    padding-left: 0; /* Reset browser default */
}

.policy-content-0004 li {
    position: relative;
    padding: 12px 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.policy-content-0004 li:hover {
    transform: translateX(10px);
    background: #fff;
    border-left: 4px solid #DB3243;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.highlight-0004 {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid #DB3243;
    margin: 25px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.highlight-0004::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(219, 50, 67, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-0004:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(219, 50, 67, 0.1);
}

.highlight-0004:hover::before {
    opacity: 1;
}

.contact-info-0004 {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(219, 50, 67, 0.1);
}

.contact-info-0004:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(219, 50, 67, 0.2);
}

.contact-info-0004 p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-info-0004 p:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-0004 i {
    color: #DB3243;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.contact-info-0004 p:hover i {
    transform: scale(1.2);
    background: #DB3243;
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        /* padding: 20px 10px; */ /* Removed to avoid double padding */
    }
    .policy-section-0004 {
        padding: 25px;
    }
    .section-title-0004 {
        font-size: 1.3rem;
    }
    .policy-content-0004 {
        font-size: 0.9rem;
    }
    .policy-content-0004 li {
        font-size: 0.9rem;
    }
    .contact-info-0004 {
        padding: 20px;
    }
    .contact-info-0004 p {
        font-size: 0.9rem;
    }
}

/* Scroll Animation */
.policy-section-0004 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-section-0004.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 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);
}

.download-btn-0004:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(219, 50, 67, 0.2);
}

.download-btn-0004 i {
    font-size: 1.1rem;
}

/* 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; /* Reduced z-index, but still high */
    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-title-0004 i {
    font-size: 1.6rem;
    color: #DB3243;
}

.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 for correct padding */
}

.form-group-0004 input:focus {
    outline: none;
    border-color: #DB3243;
    background: white;
    box-shadow: 0 0 0 3px rgba(219, 50, 67, 0.1);
}

.radio-group-0004 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.radio-group-0004 label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.radio-group-0004 input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.radio-group-0004 label:hover {
    color: #DB3243;
}

/* Terms and Conditions Hover Styles */
.terms-container-0004 {
    position: relative;
    margin-top: 10px;
}

.terms-label-0004 {
    display: inline-flex; /* Changed to inline-flex */
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease; /* Added 'all' */
    color: #DB3243;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 8px;
    border-left: 3px solid #DB3243;
    box-shadow: 0 2px 8px rgba(219, 50, 67, 0.1);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.terms-label-0004:hover {
    color: #ff6b6b;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(219, 50, 67, 0.15);
}

.terms-label-0004 i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #DB3243, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.terms-content-0004 {
    position: absolute;
    bottom: 100%; /* Position above the label */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(219, 50, 67, 0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px; /* Space between box and label */
}

.terms-container-0004:hover .terms-content-0004 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.terms-content-0004 h4 {
    color: #DB3243;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(219, 50, 67, 0.2);
}

.terms-content-0004 p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333;
    padding-left: 0; /* Reset padding */
}
.terms-content-0004 p::before {
    display: none; /* Hide p::before inside terms */
}


.terms-content-0004 ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.terms-content-0004 li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
    position: relative;
    padding-left: 10px;
    background: none; /* Reset list styles */
    border: none; /* Reset list styles */
}
.terms-content-0004 li:hover {
    transform: none; /* Reset list styles */
    background: none; /* Reset list styles */
    border: none; /* Reset list styles */
    box-shadow: none; /* Reset list styles */
}

.terms-content-0004 li:before {
    content: "•";
    color: #DB3243;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.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;
}

.cancel-btn-0004:hover {
    background: #e1e1e1;
}

.submit-btn-0004:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(219, 50, 67, 0.2);
}

.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;
}

.error-message-0004 {
    color: #DB3243;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    padding: 5px 10px;
    background: #fff5f5;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-overlay-0004 {
        padding-top: 20px;
    }
    
    .popup-form-0004 {
        margin: 10px auto;
        padding: 20px;
    }
    
    .form-title-0004 {
        font-size: 1.2rem;
    }
    
    .radio-group-0004 {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start; /* Align radios to the left */
    }
}

/* 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;
}

.success-message-0004 i {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}