/**
 * Arman Car Rental - Customer Direct Booking Portal Stylesheet
 * High-conversion modern styling for public car rental frontend
 */

:root {
    --cr-primary: #696cff;
    --cr-primary-hover: #5f61e6;
    --cr-primary-subtle: #e8e9ff;
    --cr-dark: #1e1e2d;
    --cr-dark-surface: #2b2c40;
    --cr-body-bg: #f5f5f9;
    --cr-card-bg: #ffffff;
    --cr-border: #e7e7e8;
    --cr-text-heading: #38324f;
    --cr-text-muted: #697a8d;
    --cr-accent-green: #71dd37;
    --cr-accent-gold: #ffab00;
    --cr-accent-cyan: #03c3ec;
    --cr-shadow-sm: 0 2px 6px 0 rgba(67, 89, 113, 0.08);
    --cr-shadow-md: 0 4px 16px 0 rgba(67, 89, 113, 0.12);
    --cr-shadow-lg: 0 10px 30px 0 rgba(67, 89, 113, 0.16);
    --cr-radius-md: 0.5rem;
    --cr-radius-lg: 0.85rem;
    --cr-radius-xl: 1.25rem;
}

body.customer-portal-body {
    background-color: var(--cr-body-bg);
    color: #566a7f;
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Public Header & Navbar */
.public-navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(67, 89, 113, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease-in-out;
    padding: 0.85rem 0;
}

.public-navbar .nav-link {
    font-weight: 500;
    color: #566a7f;
    padding: 0.5rem 1rem !important;
    border-radius: var(--cr-radius-md);
    transition: all 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--cr-primary);
    background-color: var(--cr-primary-subtle);
}

.brand-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #696cff 0%, #8592a3 100%);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    background: linear-gradient(135deg, #1b1a32 0%, #2f2b4a 50%, #1e1e2d 100%);
    color: #ffffff;
    padding: 4.5rem 0 5.5rem 0;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(105, 108, 255, 0.25) 0%, transparent 60%),
                      radial-gradient(circle at 10% 80%, rgba(113, 221, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: #ffffff;
}

.hero-title span {
    background: linear-gradient(135deg, #696cff 0%, #03c3ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    color: #b4b3c7;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Quick Search Card */
.search-widget-card {
    background: #ffffff;
    border-radius: var(--cr-radius-xl);
    box-shadow: 0 15px 35px rgba(27, 26, 50, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.75rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
}

.search-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8592a3;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Vehicle Cards */
.vehicle-card {
    background: #ffffff;
    border-radius: var(--cr-radius-lg);
    border: 1px solid var(--cr-border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cr-shadow-lg);
    border-color: rgba(105, 108, 255, 0.35);
}

.vehicle-img-holder {
    height: 200px;
    background: linear-gradient(180deg, #f8f9fc 0%, #edf0f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    overflow: hidden;
}

.vehicle-img-holder img {
    max-height: 170px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-img-holder img {
    transform: scale(1.05);
}

.vehicle-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    background: #ffffff;
    color: var(--cr-dark);
    box-shadow: var(--cr-shadow-sm);
}

.vehicle-location-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 30px;
    background: rgba(30, 30, 45, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #697a8d;
    background: #f5f5f9;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
}

.price-tag-amount {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--cr-primary);
    line-height: 1;
}

.price-tag-unit {
    font-size: 0.8rem;
    color: #8592a3;
    font-weight: 500;
}

/* Multi-Step Booking Stepper */
.booking-steps-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.booking-steps-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e7e7e8;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-bubble {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #d9dee3;
    color: #8592a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: var(--cr-shadow-sm);
}

.step-item.active .step-bubble {
    background: var(--cr-primary);
    border-color: var(--cr-primary-subtle);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(105, 108, 255, 0.2);
}

.step-item.completed .step-bubble {
    background: var(--cr-accent-green);
    border-color: var(--cr-accent-green);
    color: #ffffff;
}

.step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #697a8d;
    margin-top: 0.5rem;
}

.step-item.active .step-label {
    color: var(--cr-primary);
    font-weight: 700;
}

/* Document Dropzone Styling */
.doc-upload-box {
    border: 2px dashed #d9dee3;
    border-radius: var(--cr-radius-md);
    padding: 1.5rem;
    text-align: center;
    background: #fdfdfe;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doc-upload-box:hover {
    border-color: var(--cr-primary);
    background: var(--cr-primary-subtle);
}

.doc-preview-thumb {
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #d9dee3;
    margin-top: 0.5rem;
}

/* Feature Pillars */
.pillar-card {
    background: #ffffff;
    border-radius: var(--cr-radius-lg);
    border: 1px solid var(--cr-border);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cr-shadow-md);
    border-color: rgba(105, 108, 255, 0.3);
}

.pillar-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* Branch Location Card */
.branch-hub-card {
    background: #ffffff;
    border-radius: var(--cr-radius-lg);
    border: 1px solid var(--cr-border);
    overflow: hidden;
    height: 100%;
}

.branch-hub-header {
    background: linear-gradient(135deg, #1e1e2d 0%, #2b2c40 100%);
    color: #ffffff;
    padding: 1.5rem;
}

/* Confirmation Badge */
.confirmation-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(113, 221, 55, 0.15);
    color: var(--cr-accent-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: pulseScale 1.5s infinite;
}

@keyframes pulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Public Footer */
.public-footer {
    background: #1e1e2d;
    color: #a1acb8;
    margin-top: auto;
    border-top: 1px solid #2b2c40;
}

.public-footer a {
    color: #a1acb8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.public-footer a:hover {
    color: #ffffff;
}

.public-footer .footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Responsive Tweaks */
@media (max-width: 767.98px) {
    .hero-wrapper {
        padding: 3rem 0 4.5rem 0;
    }
    .search-widget-card {
        margin-top: -2.5rem;
        padding: 1.25rem;
    }
    .booking-steps-bar::before {
        display: none;
    }
    .step-label {
        font-size: 0.72rem;
    }
}
