/* Главная страница */
.hero-gradient {
    /* background: linear-gradient(135deg, #CF15D9 0%, #1A27F3 50%, #4F1726 100%); */
    background: #ddc50c;
    color: #101828;
    position: relative;
    overflow: visible;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero background map */
#hero-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Map overlay for better text readability */
.hero-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(221, 197, 12, 0.7);
    z-index: 1;
    pointer-events: none;
}

/* Update z-index for content above map */
.hero-content {
    position: relative;
    z-index: 2;
    color: #101828;
}

.hero-content h1 {
    color: #101828;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.hero-content p {
    color: #1d2939;
}

.search-card {
    position: relative;
    z-index: 2;
}

@media (max-width: 1549.98px) {
    .email-hide {
      display: none !important;
    }
  }

/* Hero Panda Image */
.hero-panda-container {
    position: absolute;
    bottom: -3.2rem;
    right: 5%;
    height: calc(100% + 3.2rem);
    width: 20%;
    max-width: 320px;
    pointer-events: none;
    z-index: 10;
}

.hero-panda-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Adjust panda position for larger screens */
@media (min-width: 1600px) {
    .hero-panda-container {
        bottom: -4rem;
        height: calc(100% + 4rem);
    }
}

/* Mobile: hide panda or show smaller version */
@media (max-width: 991.98px) {
    .hero-panda-container {
        display: none !important;
    }
}

/* Hero with search form */
.hero-with-search {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 8vw, 3rem) 0;
}

.search-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(16, 24, 40, 0.15);
    text-align: left;
    color: #101828;
}

.search-card h2 {
    color: #101828;
}

.search-card label {
    color: #475467;
    font-weight: 500;
    font-size: 0.9rem;
}

.search-card .form-control,
.search-card .form-select {
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    padding: 0.75rem 1rem;
    background: #fff;
    font-size: 1rem;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.2rem rgba(51, 0, 255, 0.15);
}

/* Стили для кнопок выбора даты */
.date-button-group {
    display: flex;
    gap: 0.5rem;
}

.date-button-group .date-btn {
    flex: 1;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border: 1.5px solid #d0d5dd;
    background: #fff;
    color: #475467;
    transition: all 0.2s ease;
}

.date-button-group .date-btn:hover {
    background: #f8f9fa;
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.date-button-group .date-btn.active {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.date-button-group #calendar-btn {
    flex: 0 0 auto;
    min-width: 48px;
    padding: 0.75rem;
}

#selected-date-display {
    font-weight: 500;
    color: #101828;
}

.urgency-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.urgency-options .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
}

.urgency-options .form-check-input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.urgency-options .form-check-label {
    cursor: pointer;
    padding-left: 10px;
}

/* Search results on map */
.search-result-marker {
    background: var(--brand-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

#results-map {
    box-shadow: 0 25px 60px rgba(16, 24, 40, 0.08);
}

.pain-points {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.pain-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(16, 24, 40, 0.12);
}

.pain-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: var(--brand-accent); /* #ddc50c */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.solution-card {
    border-left: 4px solid var(--brand-accent);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, var(--brand-accent) 0%, #d4af08 100%);
    color: #fff;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Страница входа мастера */
body.login-page {
    background: linear-gradient(135deg, #ddc50c 0%, #d4af08 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Страница бронирования */
.booking-panel {
    border-radius: 1.5rem;
    background: #fff;
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 25px 60px rgba(16, 24, 40, 0.08);
}

/* Расписание мастера */
.glass-panel {
    background: #fff;
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 25px 60px rgba(16, 24, 40, 0.08);
}

.schedule-card {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(16, 24, 40, 0.08);
}

.schedule-card table {
    margin-bottom: 0;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600;
}

.badge-rounded {
    border-radius: 999px;
    padding: .45rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Страница успешной заявки */
.success-card {
    border-radius: 1.5rem;
    background: #fff;
    padding: clamp(1.5rem, 6vw, 3rem);
    box-shadow: 0 25px 60px rgba(16, 24, 40, 0.08);
}

.icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

.success-card dl {
    margin: 0;
}

.success-card dt {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #98a2b3;
}

.success-card dd {
    font-weight: 600;
    color: var(--brand-dark);
}

/* Форма бронирования */
/* Метки полей форм - обычный стиль без uppercase */
.booking-panel .form-label {
    font-weight: 400;
    color: #475467;
}

.btn-pill {
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
}

/* Customers - Login/Register Pages */
.login-page {
    background: linear-gradient(135deg, #ddc50c 0%, #d4af08 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure footer stays at bottom on profile pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.login-page .card {
    border: none;
    border-radius: 1rem;
}

.login-page .logo {
    max-width: 100%;
    height: auto;
}

/* Customer Profile - legacy class, now handled by user-profile-avatar */
.profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background-color: #ddc50c !important;
    color: #101828 !important;
}

.vehicle-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.vehicle-card.border-primary {
    border-width: 2px !important;
    border-color: #ddc50c !important;
}

.vehicle-card .badge.bg-primary {
    background-color: #ddc50c !important;
    color: #101828 !important;
}

/* Order History Table */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

/* Vehicle Selection in Booking Form */
#existing-vehicle-section,
#new-vehicle-section {
    transition: opacity 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* User Dropdown in Navigation */
.navbar .badge.rounded-circle {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Navigation buttons - brand yellow */
.navbar .btn-primary {
    background-color: #ddc50c !important;
    border-color: #ddc50c !important;
    color: #101828 !important;
    font-weight: 300;
}

.navbar .btn-primary:hover {
    background-color: #c9b50b !important;
    border-color: #c9b50b !important;
}

.navbar .btn-outline-light {
    font-weight: 300;
}

/* User avatar badge - brand yellow */
.navbar .badge.bg-primary {
    background-color: #ddc50c !important;
    color: #101828 !important;
}

/* User avatar with steering wheel icon */
.user-avatar-badge {
    background-color: #ddc50c !important;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(221, 197, 12, 0.3);
}

.user-avatar-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Profile page avatar */
.user-profile-avatar {
    background: linear-gradient(135deg, #ddc50c 0%, #f5e366 100%);
    box-shadow: 0 8px 24px rgba(221, 197, 12, 0.4);
    border: 4px solid #fff;
}

/* Customer profile buttons - use brand yellow color */
.container .btn-primary,
.card .btn-primary,
.btn-primary.cta-button {
    background-color: #ddc50c !important;
    border-color: #ddc50c !important;
    color: #101828 !important;
    font-weight: 300;
}

.container .btn-primary:hover,
.card .btn-primary:hover,
.btn-primary.cta-button:hover {
    background-color: #c9b50b !important;
    border-color: #c9b50b !important;
    color: #101828 !important;
}

.container .btn-primary:active,
.card .btn-primary:active {
    background-color: #b3a00a !important;
    border-color: #b3a00a !important;
}

/* Outline buttons - yellow theme */
.container .btn-outline-primary,
.card .btn-outline-primary,
.btn-outline-primary {
    border-color: #ddc50c !important;
    color: #ddc50c !important;
    font-weight: 300;
}

.container .btn-outline-primary:hover,
.card .btn-outline-primary:hover,
.btn-outline-primary:hover {
    background-color: #ddc50c !important;
    border-color: #ddc50c !important;
    color: #101828 !important;
}

.container .btn-outline-primary:active,
.card .btn-outline-primary:active,
.btn-outline-primary:active {
    background-color: #c9b50b !important;
    border-color: #c9b50b !important;
    color: #101828 !important;
}

/* Secondary buttons - lighter font weight */
.btn-outline-secondary,
.btn-secondary {
    font-weight: 300;
}

/* Global brand color override for primary elements */
.bg-primary {
    background-color: #ddc50c !important;
    color: #101828 !important;
}

.text-primary {
    color: #ddc50c !important;
}

.border-primary {
    border-color: #ddc50c !important;
}

.badge.bg-primary {
    background-color: #ddc50c !important;
    color: #101828 !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .login-page .card {
        margin: 1rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .user-profile-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .user-profile-avatar img {
        width: 55px !important;
        height: 55px !important;
    }
    
    /* Make hero map overlay more opaque on mobile for better readability */
    .hero-map-overlay {
        background: rgba(221, 197, 12, 0.85);
    }
}

