/**
 * AKD Rental - Public Styles
 * Brand colors: Orange #F57C1F, Green #2E7D32, Cream backgrounds
 */

/* ============================================
   CSS Variables - Brand colors
   ============================================ */
:root {
    --akd-orange: #41a7b5;
    --akd-orange-dark: #E06600;
    --akd-orange-light: #FFE5CC;
    --akd-green: #2E7D32;
    --akd-green-dark: #1B5E20;
    --akd-green-light: #E8F5E9;
    --akd-dark: #1a1a1a;
    --akd-text: #333;
    --akd-muted: #666;
    --akd-light: #f9f9f7;
    --akd-cream: #FFFDF8;
    --akd-border: #e5e5e5;
    --akd-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --akd-shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --akd-radius: 8px;
    --akd-radius-lg: 12px;
}

/* ============================================
   Reset / Base
   ============================================ */
.akd-search-form-wrap,
.akd-vehicles-wrap,
.akd-booking-page {
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--akd-text);
    line-height: 1.6;
}

.akd-search-form-wrap *,
.akd-vehicles-wrap *,
.akd-booking-page * {
    box-sizing: border-box;
}

/* ============================================
   Buttons
   ============================================ */
.akd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--akd-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    font-family: inherit;
}

.akd-btn-primary {
    background: var(--akd-orange);
    color: #fff;
}
.akd-btn-primary:hover {
    background: var(--akd-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 124, 31, 0.3);
}

.akd-btn-dark {
    background: var(--akd-dark);
    color: #fff;
}
.akd-btn-dark:hover {
    background: var(--akd-orange);
    color: #fff;
}

.akd-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

.akd-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Search Form
   ============================================ */
.akd-search-form-wrap {
    background: #fff !important;
    padding: 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    margin: 20px auto !important;
    max-width: 1200px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.akd-search-form-wrap *,
.akd-search-form-wrap *::before,
.akd-search-form-wrap *::after {
    box-sizing: border-box !important;
}

.akd-search-form-wrap .akd-search-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr auto !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
}

.akd-search-form-wrap .akd-search-form .akd-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.akd-search-form-wrap .akd-search-form label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.akd-search-form-wrap .akd-search-form .akd-icon {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Inputs aur selects - theme override prevention */
.akd-search-form-wrap .akd-search-form input,
.akd-search-form-wrap .akd-search-form select {
    padding: 12px 14px !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    width: 100% !important;
    height: 46px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    outline: none !important;
}

.akd-search-form-wrap .akd-search-form input:focus,
.akd-search-form-wrap .akd-search-form select:focus {
    border-color: #F57C1F !important;
    box-shadow: 0 0 0 3px rgba(245, 124, 31, 0.12) !important;
    outline: none !important;
}

/* Search button - explicit styles, no inheritance */
.akd-search-form-wrap .akd-search-form button.akd-search-btn,
.akd-search-form-wrap .akd-search-form .akd-search-btn {
    align-self: end !important;
    height: 46px !important;
    padding: 0 28px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: #193a89 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    width: auto !important;
    min-width: auto !important;
    text-shadow: none !important;
}

.akd-search-form-wrap .akd-search-form button.akd-search-btn:hover,
.akd-search-form-wrap .akd-search-form .akd-search-btn:hover {
    background: #E06600 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(245, 124, 31, 0.35) !important;
}

.akd-search-form-wrap .akd-search-form button.akd-search-btn:focus,
.akd-search-form-wrap .akd-search-form .akd-search-btn:focus {
    outline: 2px solid rgba(245, 124, 31, 0.4) !important;
    outline-offset: 2px !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .akd-search-form-wrap .akd-search-form {
        grid-template-columns: 1fr 1fr !important;
    }
    .akd-search-form-wrap .akd-search-form button.akd-search-btn,
    .akd-search-form-wrap .akd-search-form .akd-search-btn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .akd-search-form-wrap .akd-search-form {
        grid-template-columns: 1fr !important;
    }
    .akd-search-form-wrap {
        padding: 20px !important;
    }
}

/* ============================================
   Vehicles Listing
   ============================================ */
.akd-vehicles-wrap {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 16px;
}

.akd-search-summary {
    background: var(--akd-orange-light);
    border-left: 4px solid var(--akd-orange);
    padding: 14px 20px;
    border-radius: var(--akd-radius);
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--akd-dark);
}

.akd-redirect-notice {
    background: #FFF8E1;
    border-left: 4px solid #FFA000;
    padding: 16px 20px;
    border-radius: var(--akd-radius);
    margin-bottom: 24px;
    color: #5D4037;
    box-shadow: 0 2px 6px rgba(255, 160, 0, 0.15);
}

.akd-redirect-notice strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.akd-redirect-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.akd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border-radius: var(--akd-radius);
    box-shadow: var(--akd-shadow);
}

.akd-filter-chip {
    padding: 8px 18px;
    border: 1.5px solid var(--akd-border);
    background: #fff;
    color: var(--akd-text);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}
.akd-filter-chip:hover {
    border-color: var(--akd-orange);
    color: var(--akd-orange);
}
.akd-filter-chip.active {
    background: var(--akd-orange);
    color: #fff;
    border-color: var(--akd-orange);
}

.akd-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.akd-cols-2 { grid-template-columns: repeat(2, 1fr); }
.akd-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 968px) {
    .akd-vehicles-grid,
    .akd-cols-2,
    .akd-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .akd-vehicles-grid,
    .akd-cols-2,
    .akd-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Vehicle Card */
.akd-vehicle-card {
    background: #fff;
    border-radius: var(--akd-radius-lg);
    overflow: hidden;
    box-shadow: var(--akd-shadow);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.akd-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--akd-shadow-lg);
}

.akd-vehicle-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--akd-orange);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.akd-vehicle-badge.akd-badge-green {
    background: var(--akd-green);
}

.akd-vehicle-image {
    background: linear-gradient(135deg, var(--akd-cream) 0%, var(--akd-orange-light) 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.akd-vehicle-image img,
.akd-vehicle-img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.akd-vehicle-svg {
    width: 75%;
    height: auto;
    max-height: 130px;
}

.akd-vehicle-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.akd-vehicle-category {
    font-size: 11px;
    color: var(--akd-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.akd-vehicle-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--akd-dark);
    line-height: 1.2;
}

.akd-vehicle-model {
    color: var(--akd-muted);
    font-size: 13px;
    margin: 0 0 14px;
    font-style: italic;
}

.akd-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 14px;
    border-top: 1px solid var(--akd-border);
    border-bottom: 1px solid var(--akd-border);
    font-size: 13px;
    color: var(--akd-muted);
}

.akd-vehicle-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.akd-vehicle-price {
    margin-bottom: 14px;
}

.akd-from {
    font-size: 11px;
    color: var(--akd-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.akd-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--akd-orange);
    font-family: 'Playfair Display', Georgia, serif;
}

.akd-per {
    font-size: 13px;
    color: var(--akd-muted);
}

.akd-vehicle-total {
    background: var(--akd-green-light);
    color: var(--akd-green-dark);
    padding: 8px 12px;
    border-radius: var(--akd-radius);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}

.akd-vehicle-btn {
    margin-top: auto;
    width: 100%;
}

.akd-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--akd-radius-lg);
    box-shadow: var(--akd-shadow);
}
.akd-no-results h3 {
    color: var(--akd-dark);
    margin: 0 0 8px;
    font-size: 22px;
}
.akd-no-results p {
    color: var(--akd-muted);
    margin: 0;
}

/* ============================================
   Booking Form Page
   ============================================ */
.akd-booking-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.akd-booking-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: var(--akd-radius-lg);
    box-shadow: var(--akd-shadow);
    flex-wrap: wrap;
}

.akd-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--akd-muted);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.akd-step.active {
    color: var(--akd-orange);
    font-weight: 700;
}

.akd-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--akd-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.akd-step.active .akd-step-num {
    background: var(--akd-orange);
    color: #fff;
}

.akd-booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 968px) {
    .akd-booking-layout {
        grid-template-columns: 1fr;
    }
}

.akd-booking-main {
    background: #fff;
    padding: 32px;
    border-radius: var(--akd-radius-lg);
    box-shadow: var(--akd-shadow);
}

.akd-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--akd-dark);
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--akd-orange);
}
.akd-section-title:first-child {
    margin-top: 0;
}

.akd-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.akd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .akd-form-row {
        grid-template-columns: 1fr;
    }
}

.akd-booking-main label {
    font-size: 13px;
    font-weight: 600;
    color: var(--akd-text);
}

.akd-booking-main input[type="text"],
.akd-booking-main input[type="email"],
.akd-booking-main input[type="tel"],
.akd-booking-main input[type="date"],
.akd-booking-main input[type="time"],
.akd-booking-main input[type="number"],
.akd-booking-main select,
.akd-booking-main textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--akd-border);
    border-radius: var(--akd-radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--akd-text);
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
}

.akd-booking-main input:focus,
.akd-booking-main select:focus,
.akd-booking-main textarea:focus {
    outline: none;
    border-color: var(--akd-orange);
    box-shadow: 0 0 0 3px rgba(245, 124, 31, 0.1);
}

.akd-booking-main textarea {
    resize: vertical;
    min-height: 80px;
}

/* Extras */
.akd-extras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.akd-extra-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--akd-border);
    border-radius: var(--akd-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.akd-extra-option:hover {
    border-color: var(--akd-orange);
    background: var(--akd-cream);
}

.akd-extra-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--akd-orange);
}

.akd-extra-option:has(input:checked) {
    border-color: var(--akd-orange);
    background: var(--akd-orange-light);
}

.akd-extra-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.akd-extra-info strong {
    font-size: 14px;
    color: var(--akd-dark);
}

.akd-extra-info span {
    font-size: 12px;
    color: var(--akd-muted);
}

.akd-extra-price {
    font-weight: 700;
    color: var(--akd-orange);
    font-size: 14px;
    white-space: nowrap;
}

.akd-extra-free {
    color: var(--akd-green);
}

.akd-notice {
    background: var(--akd-green-light);
    border-left: 4px solid var(--akd-green);
    padding: 14px 18px;
    border-radius: var(--akd-radius);
    font-size: 13px;
    color: var(--akd-green-dark);
    margin: 24px 0;
    line-height: 1.5;
}

.akd-submit-btn {
    margin-top: 16px;
}

#akd-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--akd-radius);
    font-size: 14px;
    display: none;
}

#akd-form-message.akd-success {
    display: block;
    background: var(--akd-green-light);
    color: var(--akd-green-dark);
    border: 1px solid var(--akd-green);
}

#akd-form-message.akd-error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* Sidebar */
.akd-booking-sidebar {
    background: #fff;
    padding: 28px;
    border-radius: var(--akd-radius-lg);
    box-shadow: var(--akd-shadow);
    position: sticky;
    top: 20px;
}

.akd-summary-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: var(--akd-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--akd-orange);
}

.akd-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--akd-muted);
}

.akd-summary-row strong {
    color: var(--akd-dark);
    font-weight: 600;
    text-align: right;
}

.akd-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--akd-dark);
    font-size: 18px;
    font-weight: 700;
    color: var(--akd-dark);
}

.akd-total-amount {
    color: var(--akd-orange);
    font-size: 26px;
    font-family: 'Playfair Display', Georgia, serif;
}

.akd-pay-notice {
    background: var(--akd-green-light);
    color: var(--akd-green-dark);
    padding: 12px 14px;
    border-radius: var(--akd-radius);
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
}

.akd-trust-signals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--akd-border);
    font-size: 13px;
    color: var(--akd-muted);
    line-height: 2;
}

/* ============================================
   Success Modal
   ============================================ */
.akd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: akdFadeIn 0.2s ease;
}

.akd-modal-overlay.akd-active {
    display: flex;
}

@keyframes akdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.akd-modal {
    background: #fff;
    border-radius: var(--akd-radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: akdSlideUp 0.3s ease;
}

@keyframes akdSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.akd-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--akd-muted);
    line-height: 1;
    padding: 4px 12px;
    border-radius: 4px;
}
.akd-modal-close:hover {
    background: #f0f0f0;
    color: var(--akd-dark);
}

.akd-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--akd-green);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
}

.akd-modal h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--akd-dark);
    margin: 0 0 12px;
}

.akd-modal p {
    color: var(--akd-muted);
    margin: 0 0 20px;
    line-height: 1.6;
}

.akd-booking-ref {
    background: var(--akd-orange-light);
    border: 2px dashed var(--akd-orange);
    padding: 14px;
    border-radius: var(--akd-radius);
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--akd-orange);
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Loading state */
.akd-loading {
    opacity: 0.6;
    pointer-events: none;
}

.akd-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: akdSpin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes akdSpin {
    to { transform: rotate(360deg); }
}
