* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background: linear-gradient(135deg, #2c4a7c 0%, #4a6fa5 100%);
    color: white;
    padding: 0;
    border-bottom: 4px solid #d4a017;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.crest {
    width: 80px;
    height: auto;
    margin-right: 20px;
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
}

nav {
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #d4a017;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome h2 {
    color: #2c4a7c;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a017;
}

.countdown h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.registration-bar {
    margin-top: 20px;
}

.progress-container {
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 40px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #d4a017 0%, #f4c430 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.progress-text {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.update-banner {
    background: #2c4a7c;
    color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
}

.update-banner h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #2c4a7c;
    color: white;
}

.btn-primary:hover {
    background-color: #1a2f4f;
}

.btn-warning {
    background-color: #d4a017;
    color: #333;
}

.btn-warning:hover {
    background-color: #b88c14;
}

.btn-secondary {
    background-color: #4a6fa5;
    color: white;
}

.btn-secondary:hover {
    background-color: #365380;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.grid-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-item h4 {
    background-color: #2c4a7c;
    color: white;
    padding: 10px;
    margin: -20px -20px 15px -20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.grid-item ul {
    list-style: none;
    margin-bottom: 15px;
}

.grid-item ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.grid-item ul li:last-child {
    border-bottom: none;
}

.grid-item a {
    color: #2c4a7c;
    text-decoration: none;
}

.grid-item a:hover {
    color: #d4a017;
}

.grid-item p {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
}

.grid-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.store {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.store h3 {
    color: #2c4a7c;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a017;
}

.store-content {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.store-content h4 {
    color: #333;
    margin-bottom: 20px;
}

.products {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.product {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

footer {
    background-color: #2c4a7c;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .crest {
        width: 60px;
    }
    
    nav a {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #2c4a7c 0%, #4a6fa5 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2em;
    margin: 5px 0;
}

.content-section {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-section h3 {
    color: #2c4a7c;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a017;
}

/* Schedule styles */
.schedule-day {
    margin-bottom: 30px;
}

.schedule-day h4 {
    color: #2c4a7c;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.timeline {
    list-style: none;
    padding-left: 20px;
}

.timeline li {
    padding: 10px 0;
    border-left: 3px solid #d4a017;
    padding-left: 20px;
    margin-bottom: 10px;
}

/* Hotel info styles */
.hotel-info {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #d4a017;
}

.hotel-info h4 {
    color: #2c4a7c;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.hotel-info p {
    margin: 10px 0;
}

/* Pricing styles */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.price-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #d4a017;
}

.price-card h4 {
    color: #2c4a7c;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.price {
    font-size: 2em;
    color: #d4a017;
    font-weight: bold;
    margin: 15px 0;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.price-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.price-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c4a7c;
    font-weight: bold;
}

/* FAQ styles */
.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2c4a7c;
    margin-bottom: 10px;
}

/* Company styles */
.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.company-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d4a017;
}

.company-card h3 {
    color: #2c4a7c;
    margin-bottom: 10px;
}

.company-card p {
    margin: 8px 0;
    font-size: 0.95em;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.company-link {
    background-color: #2c4a7c;
    color: white;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.company-link:hover {
    background-color: #4a6fa5;
}

/* Directory styles */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.map-container {
    margin: 20px 0;
}

.privacy-notice {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d4a017;
}

.privacy-notice p {
    margin: 10px 0;
}

.privacy-notice a {
    color: #2c4a7c;
    font-weight: bold;
}

/* Registration form styles */
.registration-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.radio-group label {
    display: block;
    padding: 15px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-group label:hover {
    border-color: #d4a017;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.package-details {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-left: 25px;
    margin-top: 5px;
}

.form-total {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
    border: 2px solid #d4a017;
}

.form-total h3 {
    color: #2c4a7c;
    font-size: 1.8em;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Memorial styles */
.memorial-header {
    background: linear-gradient(135deg, #1a2f4f 0%, #2c4a7c 100%);
}

.memorial-intro {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.memorial-list {
    display: grid;
    gap: 25px;
}

.memorial-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2c4a7c;
}

.memorial-card h3 {
    color: #2c4a7c;
    margin-bottom: 10px;
}

.memorial-card p {
    margin: 8px 0;
}

.memorial-bio {
    margin-top: 15px;
    line-height: 1.6;
    color: #555;
}

.memorial-link {
    color: #2c4a7c;
    text-decoration: none;
    font-weight: bold;
}

.memorial-link:hover {
    color: #d4a017;
}

.memorial-notice {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.memorial-notice h3 {
    color: #2c4a7c;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.memorial-notice a {
    color: #2c4a7c;
    font-weight: bold;
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 1.8em;
    }
    
    .pricing {
        grid-template-columns: 1fr;
    }
    
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Map styles */
#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #ddd;
}

#search-results {
    min-height: 20px;
}

#search-results ul li:hover {
    background-color: #e8f4f8;
}

@media (max-width: 768px) {
    #map {
        height: 400px;
    }
}

/* Authentication pages styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

.auth-box h2 {
    color: #2c4a7c;
    text-align: center;
    margin-bottom: 10px;
}

.auth-box > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.auth-form input[type="checkbox"] {
    margin-right: 8px;
}

.auth-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-links p {
    margin: 10px 0;
}

.auth-links a {
    color: #2c4a7c;
    font-weight: bold;
    text-decoration: none;
}

.auth-links a:hover {
    color: #d4a017;
}

/* Company Editor styles */
.editor-header {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #d4a017;
}

.editor-header h3 {
    color: #2c4a7c;
    margin-bottom: 5px;
}

.company-edit-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.preview-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.preview-section h3 {
    color: #2c4a7c;
    margin-bottom: 15px;
}

.company-preview {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

/* Admin panel styles */
.admin-notice {
    background-color: #fff3cd;
    border: 2px solid #d4a017;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.company-rep-list {
    display: grid;
    gap: 20px;
}

.rep-assignment {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c4a7c;
}

.rep-assignment h3 {
    color: #2c4a7c;
    margin-bottom: 15px;
}

.rep-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rep-form label {
    flex: 1;
    min-width: 200px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: #2c4a7c;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .rep-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-small {
        width: 100%;
    }
}

/* Facebook feed styles */
.facebook-feed-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .facebook-feed-container {
        overflow-x: auto;
    }
}
