:root {
    --navy: #1a2b4a;
    --navy-dark: #0f1a2e;
    --navy-light: #2d4a6f;
    --gray: #6b7280;
    --gray-light: #f8f9fa;
    --gray-border: #e5e7eb;
    --white: #ffffff;
    --green: #2d6a4f;
    --blue: #3b82f6;
    --red: #dc2626;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

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

a:hover {
    color: var(--blue);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.brand-centered {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
}

.brand-logo {
    height: 48px;
    width: auto;
}

.brand-text {
    font-size: 1.1rem;
}

.nav-main, .nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link.active {
    background: var(--gray-light);
}

.support-banner {
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-border);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.site-main {
    min-height: calc(100vh - 200px);
}

.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 80px 20px 100px;
    text-align: center;
    color: var(--white);
}

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

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 800;
}

.hero .tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.hero .meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.section {
    padding: 64px 20px;
}

.section-features {
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-border);
}

.feature-icon {
    margin-bottom: 12px;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--navy);
}

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

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    margin-bottom: 16px;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--navy);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 43, 74, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
}

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

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.page-header {
    padding: 40px 20px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray);
}

.form-card {
    max-width: 560px;
    margin: 0 auto 48px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.form-check input {
    margin-top: 4px;
}

.account-fields {
    border-top: 1px solid var(--gray-border);
    padding-top: 20px;
    margin-top: 8px;
}

.account-fields.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* Time slots styling */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--navy);
    background: var(--gray-light);
}

.time-slot input[type="radio"] {
    display: none;
}

.time-slot input[type="radio"]:checked + span {
    color: var(--navy);
    font-weight: 600;
}

.time-slot.disabled {
    background: #fee2e2;
    border-color: #ef4444;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.disabled span {
    color: #991b1b;
    text-decoration: line-through;
}

/* Service checkboxes styling */
.service-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.service-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.service-checkbox:hover {
    border-color: var(--navy);
    background: var(--gray-light);
}

.service-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.service-checkbox input:checked + .checkmark {
    background: var(--navy);
    border-color: var(--navy);
}

.checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.service-checkbox input:checked + .checkmark::after {
    display: block;
}

.service-label {
    font-weight: 500;
    color: var(--navy);
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.95rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.dashboard-grid {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.quote-card {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--white);
}

.quote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-quoted { background: #dbeafe; color: #1e40af; }
.status-accepted { background: #d1fae5; color: #065f46; }
.status-declined { background: #fee2e2; color: #991b1b; }

.quote-prices {
    margin: 16px 0;
    border-top: 1px solid var(--gray-border);
    padding-top: 12px;
}

.quote-prices table {
    width: 100%;
}

.quote-prices td {
    padding: 6px 0;
}

.quote-prices td:last-child {
    text-align: right;
    font-weight: 500;
}

.quote-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray);
}

.site-footer {
    background: var(--navy);
    color: var(--white);
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 48px 20px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 16px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Admin styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-light);
}

.admin-sidebar {
    width: 240px;
    background: var(--navy);
    color: var(--white);
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    padding: 0 20px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 12px;
}

.admin-sidebar a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-content {
    flex: 1;
    padding: 32px;
}

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

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-border);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-border);
}

.data-table th {
    background: var(--gray-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
}

.admin-login-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--gray-border);
}

.admin-login-card h1 {
    text-align: center;
    margin-bottom: 8px;
}

.admin-login-card p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-main, .nav-auth {
        justify-content: center;
    }

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

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }
}
