/* Caribbean Rent A Car - Frontend Styles */
:root {
    --crc-primary: #0a4d68;
    --crc-primary-dark: #083d54;
    --crc-accent: #f7b733;
    --crc-accent-hover: #e5a520;
    --crc-success: #28a745;
    --crc-danger: #dc3545;
    --crc-text: #1a1a2e;
    --crc-muted: #6c757d;
    --crc-bg: #f8fafc;
    --crc-card: #ffffff;
    --crc-radius: 12px;
    --crc-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Hero */
.crc-hero {
    position: relative;
    background: linear-gradient(135deg, #0a4d68 0%, #088395 50%, #05bfdb 100%);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}
.crc-hero-overlay {
    padding: 60px 20px 120px;
    text-align: center;
}
.crc-hero-tagline {
    letter-spacing: 4px;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}
.crc-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
}
.crc-hero h1 span {
    color: var(--crc-accent);
}
.crc-hero-sub {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Search Bar */
.crc-search-bar {
    margin: -60px auto 0;
    max-width: 1100px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}
.crc-search-form {
    background: #fff;
    border-radius: var(--crc-radius);
    box-shadow: var(--crc-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    align-items: flex-end;
}
.crc-search-field {
    flex: 1;
    min-width: 160px;
}
.crc-search-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--crc-muted);
    margin-bottom: 6px;
}
.crc-search-field select,
.crc-search-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}
.crc-btn-search {
    background: var(--crc-accent) !important;
    color: #1a1a2e !important;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.crc-btn-search:hover {
    background: var(--crc-accent-hover) !important;
}

/* Features */
.crc-features {
    padding: 50px 20px;
    background: var(--crc-bg);
}
.crc-features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}
.crc-feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.crc-feature h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--crc-primary);
}
.crc-feature p {
    margin: 0;
    font-size: 13px;
    color: var(--crc-muted);
}

/* Fleet */
.crc-fleet-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.crc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}
.crc-section-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--crc-primary);
    font-weight: 600;
    margin: 0 0 4px;
}
.crc-section-header h2 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}
.crc-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.crc-vehicle-card {
    background: var(--crc-card);
    border-radius: var(--crc-radius);
    box-shadow: var(--crc-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.crc-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.crc-vehicle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--crc-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}
.crc-vehicle-image {
    height: 180px;
    background: #e8f4f8;
    overflow: hidden;
}
.crc-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.crc-vehicle-info {
    padding: 16px;
}
.crc-vehicle-info h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.crc-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--crc-muted);
    margin-bottom: 14px;
}
.crc-vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.crc-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--crc-primary);
}
.crc-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--crc-muted);
}
.crc-btn-book {
    background: var(--crc-accent);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}
.crc-btn-book:hover {
    background: var(--crc-accent-hover);
    color: #1a1a2e;
}

/* Buttons */
.crc-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.crc-btn-primary {
    background: var(--crc-primary);
    color: #fff;
}
.crc-btn-primary:hover {
    background: var(--crc-primary-dark);
    color: #fff;
}
.crc-btn-outline {
    border: 2px solid var(--crc-primary);
    color: var(--crc-primary);
    background: transparent;
}
.crc-btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Single Vehicle */
.crc-single-vehicle {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .crc-single-vehicle { grid-template-columns: 1fr; }
}
.crc-vehicle-gallery img {
    width: 100%;
    border-radius: var(--crc-radius);
}
.crc-price-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--crc-primary);
}
.crc-specs-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
    color: var(--crc-muted);
}

/* Forms */
.crc-booking-wrap, .crc-customer-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.crc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.crc-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}
.crc-form-group input,
.crc-form-group select,
.crc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.crc-success { color: var(--crc-success); }
.crc-error { color: var(--crc-danger); }

/* Table */
.crc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.crc-table th, .crc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.crc-table th {
    background: var(--crc-bg);
    font-size: 13px;
}
.crc-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.crc-status-active, .crc-status-confirmed { background: #d4edda; color: #155724; }
.crc-status-reserved { background: #cce5ff; color: #004085; }
.crc-status-returned, .crc-status-completed { background: #e2e3e5; color: #383d41; }
.crc-status-overdue, .crc-status-cancelled { background: #f8d7da; color: #721c24; }

.crc-loading { text-align: center; padding: 40px; color: var(--crc-muted); }
