/**
 * TOWD Base Styles
 * Common styles for navigation, footer, forms, and layout
 */

:root {
    --yellow: #FCEE21;
    --yellow-light: #FFF44F;
    --yellow-pale: #FFFDE7;
    --black: #1a1a1a;
    --black-soft: #2d2d2d;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #6b7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

/* Navigation */
.navbar {
    background: var(--yellow);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(0);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-links-desktop {
    display: none;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    color: var(--black);
    background: rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    background: var(--black);
    color: var(--yellow);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-phone:hover {
    background: var(--black-soft);
}

.phone-icon {
    width: 18px;
    height: 18px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--black);
}

/* Page Header */
.page-header {
    padding: 120px 1rem 60px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.85)),
                url('/static/bookings/images/hero-bg.jpg') center/cover no-repeat;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header h1 span {
    color: var(--yellow);
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Form Styles */
.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--yellow);
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Messages */
.messages {
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.form-group label .required {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(252, 238, 33, 0.15);
}

.form-control::placeholder {
    color: #9ca3af;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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 0.75rem center;
    background-size: 18px;
    padding-right: 2.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--black-soft);
}

.form-group .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0 0;
}

.form-group .errorlist li {
    color: #dc2626;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer p {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.footer-phone {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-phone:hover {
    color: var(--yellow-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--yellow);
    color: var(--black);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Tablet and up */
@media (min-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .logo img {
        height: 42px;
    }

    .nav-phone {
        font-size: 1.1rem;
    }

    .phone-icon {
        width: 22px;
        height: 22px;
    }

    .page-header {
        padding: 140px 2rem 80px;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .content-section {
        padding: 5rem 2rem;
    }

    .form-card {
        padding: 2.5rem;
    }
}

/* Mobile nav */
@media (max-width: 767px) {
    .nav-right {
        display: none;
    }

    .nav-links-mobile {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--yellow);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links-mobile.active {
        display: flex;
    }

    .nav-links-mobile .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: 0;
        color: var(--black);
    }

    .nav-phone-mobile {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 768px) {
    .nav-right {
        display: flex;
    }

    .nav-links-desktop {
        display: flex;
    }

    .nav-links-mobile {
        display: none !important;
    }

    .nav-toggle {
        display: none;
    }
}
