/* West Car Iloilo Booking System Styles */
:root {
    --primary: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2c5282;
    --accent: #d69e2e;
    --accent-hover: #b7791f;
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #dd6b20;
    --info: #3182ce;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

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

.nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.875rem;
}

.nav a:hover, .nav a.active {
    background: rgba(255,255,255,0.15);
}

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

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

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.25rem;
    cursor: pointer;
    margin-right: 0.75rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
}

/* Vehicle Cards Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.vehicle-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-info {
    padding: 1.25rem;
}

.vehicle-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.vehicle-type {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vehicle-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.vehicle-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.vehicle-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vehicle-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.vehicle-price .currency {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.vehicle-price .amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.vehicle-price .period {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

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

.btn-danger:hover {
    background: #c53030;
}

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

.btn-success:hover {
    background: #2f855a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

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

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

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

/* Booking Form */
.booking-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem 0;
}

.booking-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

/* Price Breakdown */
.price-breakdown {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.price-row:not(:last-child) {
    border-bottom: 1px dashed var(--gray-300);
}

.price-row.discount {
    color: var(--success);
}

.price-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--gray-300);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.badge-completed {
    background: #dbeafe;
    color: #1e40af;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.badge-paid {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Tag Colors */
.tag-red {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca;
}

.tag-green {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0;
}

.tag-black {
    background: var(--gray-800) !important;
    color: var(--white) !important;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    background: var(--gray-100);
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table tr:hover td {
    background: var(--gray-50);
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
}

.admin-sidebar-header p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.admin-nav {
    padding: 1rem 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--accent);
}

.admin-nav a .icon {
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-content {
    padding: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.blue { background: #dbeafe; color: #1e40af; }
.stat-icon.green { background: #d1fae5; color: #065f46; }
.stat-icon.yellow { background: #fef3c7; color: #92400e; }
.stat-icon.red { background: #fee2e2; color: #991b1b; }

.stat-info h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    max-width: 400px;
}

/* Flash Messages */
.flash {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

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

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

.flash-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Login Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

/* Payment Instructions */
.payment-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.payment-box h4 {
    color: #166534;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.payment-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #86efac;
    font-size: 0.9375rem;
}

.payment-detail:last-child {
    border-bottom: none;
}

/* Document Upload */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
}

.upload-zone:hover {
    border-color: var(--primary-light);
    background: var(--gray-100);
}

.upload-zone input {
    display: none;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 0.875rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}
/* Game Promo Banner */
.game-promo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
}

.game-promo-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.game-promo-text {
    flex: 1;
}

.game-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.25rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.game-promo-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.game-promo-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.game-promo-highlight {
    background: rgba(214,158,46,0.15);
    border: 1px solid rgba(214,158,46,0.4);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--accent) !important;
    font-size: 0.9375rem;
}

.game-promo-highlight strong {
    color: var(--accent);
}

.game-promo-text .btn {
    margin-top: 1rem;
}

.game-promo-map {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.game-promo-map i {
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.9;
}

.game-promo-map span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.75);
}

@media (max-width: 768px) {
    .game-promo-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .game-promo-text h3 {
        font-size: 1.375rem;
    }
    .game-promo-map i {
        font-size: 3.5rem;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav.active {
        display: flex;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

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

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-mobile-menu-btn {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .header, .nav, .admin-sidebar, .btn {
        display: none !important;
    }

    .card, .booking-section {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Contract Styles */
.contract-page {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.contract-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contract-meta {
    text-align: right;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.contract-meta p {
    margin: 0.25rem 0;
}

.contract-title {
    text-align: center;
    margin-bottom: 2rem;
}

.contract-title h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-decoration: underline;
}

.contract-title p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.contract-parties {
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: justify;
}

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

.contract-section h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.contract-terms {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.contract-terms p {
    margin-bottom: 0.75rem;
}

.contract-terms ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.contract-terms ul li {
    margin-bottom: 0.25rem;
}

.contract-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.contract-table td {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-200);
}

.contract-table tr:nth-child(odd) {
    background: var(--gray-50);
}

.contract-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.8125rem;
}

.contract-warning h4 {
    color: #92400e;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.contract-warning p {
    color: #92400e;
    margin: 0;
}

.contract-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.signature-block {
    text-align: center;
}

.signature-block p {
    font-size: 0.8125rem;
    margin: 0.25rem 0;
    color: var(--gray-600);
}

.signature-image {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
}

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

.signature-placeholder {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-50);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-pad-container {
    margin-top: 1rem;
}

.signature-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contract-witness {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.contract-actions {
    margin-top: 2rem;
    text-align: center;
}

@media print {
    body {
        background: white;
    }
    .contract-page {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    .contract-header {
        border-bottom: 2px solid #000;
    }
    .contract-section h3 {
        color: #000;
        border-bottom: 1px solid #000;
    }
    .contract-table td {
        border: 1px solid #000;
    }
    .contract-warning {
        border: 1px solid #000;
        background: none;
    }
    .signature-image {
        border: 1px solid #000;
    }
    .signature-placeholder {
        border: 2px dashed #000;
    }
    .no-print {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .contract-page {
        padding: 1.25rem;
        margin: 1rem;
    }
    .contract-header {
        flex-direction: column;
        gap: 1rem;
    }
    .contract-meta {
        text-align: left;
    }
    .contract-signatures {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contract-table {
        font-size: 0.75rem;
    }
    #signaturePad {
        width: 100% !important;
        height: 120px !important;
    }
}