/* 
* Services and Products Pages Styling 
* For A Better Locksmith website
*/

/* Content Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin: 30px 0 60px;
}

.main-content {
    padding-right: 20px;
}

.main-content p, 
.main-content li {
    color: #000000;
}

.sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: initial;
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 60px;
}

.breadcrumbs a {
    color: var(--fun-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--fun-accent-dark);
}

/* Headings */
.main-content h1 {
    color: var(--fun-accent-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.main-content h2 {
    color: var(--fun-accent-dark);
    font-size: 1.8rem;
    margin: 30px 0 15px;
}

.main-content h3 {
    color: var(--fun-text-dark);
    font-size: 1.4rem;
    margin: 25px 0 10px;
}

.main-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.main-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.main-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Emergency Box */
.emergency-box {
    background-color: #2f0884;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.emergency-box h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.emergency-box p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* CTA Button */
.emergency-box .cta-button {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    background-color: #f5564e;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.emergency-box .cta-button:hover {
    background-color: #f5564e; /* Stay red on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sidebar Form Styles */
.sidebar-form {
    background-color: #2f0884;
    padding: 20px;
    border-radius: 8px;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 300px;
}

.sidebar-form h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    margin-top: 0;
    text-align: center;
}

.sidebar-form .form-group {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.sidebar-form .form-control {
    width: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 0;
}

.sidebar-form p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: center;
    padding: 0 15px;
}

.sidebar-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.sidebar-form .form-submit-btn {
    width: 90%;
    max-width: 220px;
    margin: 15px auto 0;
    background-color: #f5564e;
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: block;
}

.sidebar-form .form-submit-btn:hover {
    background-color: #f5564e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.cta-section {
    background-color: #222;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: #eee;
    margin-bottom: 20px;
}

/* FAQ Section */
.faq-section {
    margin: 40px 0;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 8px;
}

.faq-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--fun-accent-dark);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
}

.faq-question::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--fun-accent-dark);
}

.faq-question.active::after {
    content: "-";
}

.faq-answer {
    display: none;
    padding: 15px 0;
    line-height: 1.6;
    color: #000000;
}

.faq-answer.active {
    display: block;
}

/* Related Services */
.related-services {
    margin: 40px 0;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 8px;
}

.related-services h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--fun-accent-dark);
    text-align: center;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-service-card {
    background-color: #2f0884; /* Changed from black (#222) to blue */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.related-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.related-service-card h4 {
    color: #ffffff;
    margin: 15px 0 10px;
}

.related-service-card p {
    font-size: 1rem;
    color: #ffffff !important;
    line-height: 1.5;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.related-service-icon {
    font-size: 2.2rem;
    color: #f5564e; /* Changed to red */
}

/* Light Mode Styles */
:root[data-theme="light"] .breadcrumbs a,
:root[data-theme="light"] .main-content h3,
:root[data-theme="light"] .faq-question,
:root[data-theme="light"] .faq-answer {
    color: var(--fun-text-light);
}

:root[data-theme="light"] .main-content h1,
:root[data-theme="light"] .main-content h2,
:root[data-theme="light"] .related-services h3,
:root[data-theme="light"] .faq-section h3 {
    color: var(--fun-text-red);
}

:root[data-theme="light"] .breadcrumbs a:hover {
    color: var(--fun-text-red);
}

:root[data-theme="light"] .faq-question::after {
    color: var(--fun-text-red);
}

:root[data-theme="light"] .cta-button {
    background-color: var(--fun-accent-light);
}

:root[data-theme="light"] .related-service-card {
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .related-service-card h4 {
    color: var(--fun-text-light);
}

:root[data-theme="light"] .related-service-card p {
    color: #555;
}

:root[data-theme="light"] .related-service-icon {
    color: var(--fun-text-red);
}

:root[data-theme="light"] .cta-section,
:root[data-theme="light"] .emergency-box {
    background-color: #2f0884; /* Keep the same color as dark theme */
}

:root[data-theme="light"] .cta-section h3,
:root[data-theme="light"] .emergency-box h3 {
    color: #fff; /* Keep text white for readability */
}

:root[data-theme="light"] .cta-section p,
:root[data-theme="light"] .emergency-box p {
    color: #fff; /* Keep text white for readability */
}

:root[data-theme="light"] .related-services,
:root[data-theme="light"] .faq-section {
    background-color: rgba(240, 240, 240, 0.7);
}

/* Light/Dark mode for main content text */
/* Add a unified rule instead */
.main-content p,
.main-content li,
.faq-question,
.faq-answer {
    color: #333;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding-right: 0;
    }
    
    .sidebar {
        margin-top: 30px;
        align-items: center;
    }
    
    .emergency-box {
        float: none;
        max-width: 400px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .sidebar-form {
        max-width: 400px;
        width: 100%;
    }
    
    .related-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-area {
        margin: 20px 0 40px;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
    
    .related-services-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumbs {
        margin-top: 50px;
    }
    
    .emergency-box, 
    .sidebar-form {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .emergency-box .cta-button {
        max-width: 220px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content h1 {
        font-size: 1.8rem;
    }
    
    .emergency-box,
    .cta-section,
    .sidebar-form {
        padding: 20px;
    }
    
    .emergency-box h3,
    .cta-section h3,
    .sidebar-form h3 {
        font-size: 1.5rem;
    }
    
    .emergency-box .cta-button,
    .sidebar-form .form-submit-btn {
        max-width: 220px;
        font-size: 0.95rem;
        padding: 10px 15px;
    }
    
    .sidebar-form .form-control {
        padding: 8px;
        font-size: 13px;
        width: 90%;
    }
    
    .content-area {
        margin-bottom: 80px; /* Space for mobile footer */
    }
}

/* Return to top button is now using inline styles instead of CSS classes */

/* Return to top button media queries */
@media (max-width: 768px) {
    .return-to-top {
        bottom: 80px; /* Adjust for mobile footer */
        right: 15px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .return-to-top {
        bottom: 75px;
        right: 10px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
} 