/* Global Styles */
:root {
    --primary-color: #546e7a;
    --secondary-color: #78909c;
    --accent-color: #29b6f6;
    --text-color: #333;
    --light-color: #f5f5f5;
    --dark-color: #263238;
    --success-color: #66bb6a;
    --warning-color: #ffa726;
    --danger-color: #ef5350;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: #0288d1;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo-container h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('building-placeholder.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Form Styles */
.form-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(41, 182, 246, 0.2);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3, .footer-links h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbdefb;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Page Styles */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    margin-bottom: 15px;
}

.content-section {
    padding: 60px 0;
}

.content-card {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.rule-item {
    margin-bottom: 25px;
}

.rule-item h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.cta-section {
    background-color: #f1f8ff;
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 25px;
}

.form-section {
    padding: 60px 0;
}

.form-section-title {
    margin-bottom: 20px;
}

.form-section-title h3 {
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.image-preview {
    margin-top: 10px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info .content-card {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Confirmation Page Styles */
.confirmation-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.confirmation-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.confirmation-details {
    margin: 30px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: auto;
        padding-left: 20px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

    /* Make the bullet points blue */
.rule-list li {
    color: blue; /* Changes the color of the text (bullet points) to blue */
}

/* Optional: If you want the bullets themselves to be blue (not just the text), you can target the ::marker pseudo-element */
.rule-list li::marker {
    color: blue; /* Changes the color of the bullet itself */
}

/* Style for the bullet points */
.rule-list {
    list-style-type: disc; /* Ensures bullets are visible */
    padding-left: 20px;
    margin-top: 10px; /* Optional: Adds some spacing at the top of the list */
}

.rule-list li {
    margin-bottom: 10px; /* Adds space between each list item */
}

/* Style to make "Please get in touch..." normal text */
.normal-text {
    font-weight: normal;  /* Ensure normal font weight */
    display: inline;  /* Keep text inline */
}

.management-info {
    padding: 30px 0;
    background-color: #f1f8ff;
}

.management-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.management-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.management-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Fire Safety Icon Styling */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-icon:nth-child(1) {
    color: #ef5350;
}

/* Rule List Styling */
.rule-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.rule-list li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.rule-list li::marker {
    color: var(--primary-color);
}

/* Emergency Contact Styling */
.emergency-contacts {
    background-color: #fff3e0;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #ffa726;
}

.emergency-contacts h4 {
    color: #e65100;
    margin-bottom: 10px;
}

.emergency-contacts ul {
    list-style-type: none;
    padding-left: 0;
}

.emergency-contacts li {
    margin-bottom: 8px;
}

/* Normal text style */
.normal-text {
    font-weight: normal;
    display: inline;
}

/* Management Info Section Styles */
.management-info {
    padding: 30px 0;
    background-color: #f1f8ff;
}

.management-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.management-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.management-card p {
    margin-bottom: 20px;
    color: #666;
}

.info-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icons span {
    font-size: 2.5rem;
    margin: 0 15px;
}

/* Fire Safety Icon Styling */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-icon:nth-child(1) {
    color: #ef5350;
}

/* Rule List Styling */
.rule-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.rule-list li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.rule-list li::marker {
    color: var(--primary-color);
}

/* Emergency Contact Styling */
.emergency-contacts {
    background-color: #fff3e0;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #ffa726;
}

.emergency-contacts h4 {
    color: #e65100;
    margin-bottom: 10px;
}

.emergency-contacts ul {
    list-style-type: none;
    padding-left: 0;
}

.emergency-contacts li {
    margin-bottom: 8px;
}

/* Normal text style */
.normal-text {
    font-weight: normal;
    display: inline;
}

:root {
    --link-color: #0d47a1 !important; /* Dark blue for better visibility */
}

/* Make all links darker for better contrast */
a {
    color: var(--link-color) !important;
}

/* Add underlines to links in content areas */
.content-card a, .rule-item a {
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* Make footer links more visible against dark background */
.footer-links a {
    color: #bbe2ff !important; /* Lighter blue for dark backgrounds */
}

.footer-links a:hover {
    text-decoration: underline !important;
}

/* Ensure navigation links remain readable */
.main-nav a, .dropdown-content a {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color) !important;
}

.features {
    background-color: #f1f8ff !important; /* Light blue background with !important to ensure it applies */
    padding: 80px 0;
}


/* Login/Logout button styles */
/* Updated Auth Button Styles */
.auth-button {
    position: absolute;
    top: 20px;
    right: 80px;
    z-index: 101;
    display: flex;
    gap: 8px;
}

.auth-button button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.auth-button button:hover {
    background-color: #0288d1;
    transform: translateY(-2px);
}

.auth-button .signup-btn {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.auth-button .signup-btn:hover {
    background-color: rgba(41, 182, 246, 0.1);
}

/* Updated mobile styles for auth buttons */
@media (max-width: 768px) {
    .auth-button {
        top: 70px;
        right: 20px;
        flex-direction: column;
        gap: 6px;
    }
    
    .auth-button button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* When mobile menu is open, move buttons further down */
    .main-nav.show + .auth-button {
        top: 120px;
    }
}
/* Login required message styles */
.login-required-message {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.login-required-message p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}

/* Adjust position for mobile */
@media (max-width: 768px) {
    .auth-button {
        top: 20px;
        right: 60px;
    }
}

.login-info {
    padding: 60px 0;
    background-color: #f1f8ff;
}

.login-info .content-card {
    max-width: 800px;
    margin: 0 auto;
}

.login-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-info ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.login-info ul li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.login-actions {
    margin-top: 25px;
    text-align: center;
}

/* Mobile Auth Buttons in Hero Section */
.mobile-auth-buttons {
    display: none;
    margin-top: 30px;
    gap: 15px;
    justify-content: center;
}

.mobile-auth-buttons button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.mobile-auth-buttons .signup-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide desktop auth buttons */
    .auth-button {
        display: none !important;
    }
    
    /* Show mobile auth buttons */
    .mobile-auth-buttons {
        display: flex;
    }
}

.login-required-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.login-required-message .login-btn {
    background-color: var(--accent-color);
}

.login-required-message .signup-btn {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .login-required-message .btn {
        padding: 10px 20px;
    }
}

.mobile-auth-buttons .signup-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-auth-buttons button:hover {
    transform: translateY(-2px);
}