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

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #e8a500;
    --accent-hover: #d49600;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #dde1e7;
    --success: #28a745;
    --error: #dc3545;
    --radius: 8px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

header {
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    flex-wrap: wrap;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.nav-brand a:hover {
    text-decoration: none;
}

.nav-logo {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s;
}

.nav-brand a:hover .nav-logo {
    opacity: 0.9;
}

.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links {
    list-style: none;
    width: 100%;
    display: none;
    flex-direction: column;
    padding-bottom: 1rem;
}

.nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
}

.nav-links li a {
    display: block;
    padding: 0.6rem 0;
    color: var(--white);
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--accent);
    text-decoration: none;
}

main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    background: var(--primary);
    color: var(--white);
}

.btn:hover {
    background: var(--primary-light);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

.info-section {
    margin-bottom: 2rem;
}

.info-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.steps {
    display: grid;
    gap: 1rem;
}

.step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.step h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.page-section {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.page-section h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.page-section h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-section p {
    margin-bottom: 0.8rem;
}

.price-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 400px;
}

.price-table th,
.price-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background: var(--primary);
    color: var(--white);
}

.price-table tr:nth-child(even) {
    background: #f9fafb;
}

.price-table tr:last-child td {
    font-weight: 700;
    background: #fff8e1;
}

.extras-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.extra-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.extra-item h4 {
    color: var(--primary);
    margin: 0 0 0.3rem 0;
}

.extra-item p {
    margin: 0;
    font-weight: 600;
}

.cta-box {
    text-align: center;
    margin-top: 2rem;
}

.booking-rules {
    background: #fff8e1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.booking-rules h3 {
    margin-top: 0;
    color: var(--primary);
}

.booking-rules ul {
    padding-left: 1.2rem;
}

.booking-rules li {
    margin-bottom: 0.3rem;
}

.booking-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.booking-form legend {
    font-weight: 700;
    color: var(--primary);
    padding: 0 0.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(42,90,140,0.15);
}

.checkbox-group {
    margin-bottom: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.confirmation-box {
    text-align: center;
}

.success-message {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.booking-details {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.details-table td:first-child {
    font-weight: 600;
    color: var(--text-light);
    width: 40%;
}

.details-table .price-row td {
    background: #fff8e1;
    font-size: 1.1rem;
}

.copy-block {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.copy-block h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.copy-text {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.85rem;
    background: #f9fafb;
    resize: vertical;
    cursor: pointer;
}

.faq-list {
    margin-top: 1.5rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    background: #f9fafb;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 1rem 1.25rem;
    margin: 0;
}

.contact-info {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-card {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.contact-card p {
    margin-bottom: 0.2rem;
}

.login-form {
    max-width: 360px;
    margin: 1.5rem auto 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 800px;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table th {
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
}

.admin-table tr:nth-child(even) {
    background: #f9fafb;
}

.admin-table tr:hover {
    background: #eef2f7;
}

.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.flash.error {
    background: #fce4e4;
    color: var(--error);
    border: 1px solid #f5c6c6;
}

.flash.success {
    background: #e4fce4;
    color: var(--success);
    border: 1px solid #c6f5c6;
}

footer {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    margin-top: auto;
    padding: 2rem 1rem 1rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .nav-toggle-label {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        padding-bottom: 0;
        gap: 0.25rem;
    }

    .nav-links li a {
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius);
    }

    .nav-links li a:hover {
        background: rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}
