/* ============================================
   NOVARIDE - PREMIUM ORDER SYSTEM CSS
   Tesla/Apple Business Class Style
   ============================================ */

/* ========== WHATSAPP FLOATING WIDGET ========== */

.whatsapp-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow:
        0 16px 48px rgba(37, 211, 102, 0.5),
        0 0 0 8px rgba(37, 211, 102, 0.15);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile adjustment */
@media (max-width: 767px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 56px;
        height: 56px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* ========== ORDER PAGE - TESLA STYLE ========== */

.order-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a0b 0%, #0f1210 50%, #0a0a0b 100%);
    padding-top: 120px;
}

/* Progress Steps */
.order-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 60px;
    padding: 0 20px;
}

.order-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.order-step.active .order-step-circle {
    background: var(--nova-green);
    border-color: var(--nova-green);
    color: #000;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.order-step.completed .order-step-circle {
    background: var(--nova-green);
    border-color: var(--nova-green);
    color: #000;
}

.order-step-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    transition: color 0.3s ease;
}

.order-step.active .order-step-label,
.order-step.completed .order-step-label {
    color: #fff;
}

.order-step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
    transition: background 0.5s ease;
}

.order-step.completed+.order-step-line,
.order-step-line.completed {
    background: var(--nova-green);
}

@media (max-width: 767px) {
    .order-progress {
        flex-wrap: wrap;
        gap: 16px;
    }

    .order-step-label {
        display: none;
    }

    .order-step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .order-step-line {
        width: 30px;
    }
}

/* Order Container */
.order-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Step Content */
.order-step-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.order-step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scooter Selection Cards */
.scooter-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.scooter-select-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.scooter-select-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scooter-select-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
}

.scooter-select-card:hover::before {
    opacity: 1;
}

.scooter-select-card.selected {
    border-color: var(--nova-green);
    background: rgba(16, 185, 129, 0.08);
}

.scooter-select-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--nova-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #000;
    font-weight: bold;
}

.scooter-select-img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.scooter-select-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.scooter-select-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nova-green);
}

.scooter-select-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* Color Selection in Order */
.order-color-selection {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.order-color-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.order-color-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.order-color-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.order-color-option:hover,
.order-color-option.selected {
    border-color: var(--nova-green);
    transform: scale(1.15);
}

.order-color-option.selected::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Premium Form Styling */
.order-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
}

.order-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #fff;
}

.order-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .order-form {
        padding: 24px;
    }

    .order-form-row {
        grid-template-columns: 1fr;
    }
}

.order-input-group {
    margin-bottom: 24px;
}

.order-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.order-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.order-input:focus {
    border-color: var(--nova-green);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.order-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Summary Card */
.order-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
}

.summary-header {
    display: flex;
    gap: 24px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.summary-image {
    width: 120px;
    height: 100px;
    object-fit: contain;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.summary-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: rgba(255, 255, 255, 0.6);
}

.summary-value {
    font-weight: 500;
    color: #fff;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 24px 0 0;
    margin-top: 16px;
    border-top: 2px solid rgba(16, 185, 129, 0.3);
}

.summary-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.summary-total-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nova-green);
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-option {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-option:hover {
    border-color: var(--nova-green);
    transform: translateY(-4px);
}

.contact-option.whatsapp {
    border-color: rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.08);
}

.contact-option.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.15);
}

.contact-option-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.contact-option-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-option-badge {
    display: inline-block;
    background: var(--nova-green);
    color: #000;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Confirmation */
.order-confirmation {
    text-align: center;
    padding: 60px 20px;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--nova-green) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.confirmation-icon svg {
    width: 50px;
    height: 50px;
    stroke: #000;
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.confirmation-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.confirmation-ref {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 32px;
    margin-bottom: 40px;
}

.confirmation-ref-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.confirmation-ref-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nova-green);
    font-family: monospace;
}

/* Navigation Buttons */
.order-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.order-nav-buttons .btn {
    min-width: 180px;
}

@media (max-width: 600px) {
    .order-nav-buttons {
        flex-direction: column;
    }

    .order-nav-buttons .btn {
        width: 100%;
    }
}

/* ========== PREMIUM ORDER MODAL - TESLA STYLE ========== */

.order-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.order-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-modal {
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.98), rgba(10, 10, 12, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Remove any green progress bar or border */
.order-modal::before,
.order-modal::after {
    display: none !important;
}

#orderModalFormContent {
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Fix form row overflow */
.order-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.order-modal-input-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.order-modal-input-group input,
.order-modal-input-group select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.order-modal-overlay.active .order-modal {
    transform: scale(1) translateY(0);
}

.order-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.order-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* Modal Header with Scooter Info */
.order-modal-header {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-modal-scooter-img {
    width: 120px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.order-modal-scooter-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.order-modal-scooter-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.order-modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nova-green);
}

.order-modal-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal Body - Form */
.order-modal-body {
    padding: 32px;
}

.order-modal-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

.order-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.order-modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-modal-input-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-modal-input-group input,
.order-modal-input-group select {
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.order-modal-input-group input:focus,
.order-modal-input-group select:focus {
    border-color: var(--nova-green);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.order-modal-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.order-modal-input-group select option {
    background: #1a1a1c;
    color: #fff;
}

/* Modal Footer */
.order-modal-footer {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-modal-submit {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: #000;
    background: linear-gradient(135deg, var(--nova-green) 0%, #059669 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-modal-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #34d399 0%, var(--nova-green) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.order-modal-submit:hover::before {
    opacity: 1;
}

.order-modal-submit span {
    position: relative;
    z-index: 1;
}

.order-modal-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.order-modal-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: #25D366;
}

.order-modal-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: #25D366;
}

.order-modal-note {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    padding-bottom: 8px;
}

/* Ensure modal footer has solid background */
.order-modal-footer::after {
    display: none;
}

/* Success State */
.order-modal-success {
    display: none;
    padding: 48px 32px;
    text-align: center;
}

.order-modal-success.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.order-modal-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--nova-green) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

.order-modal-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #000;
}

.order-modal-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.order-modal-success p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .order-modal {
        max-height: 95vh;
        border-radius: 20px;
    }

    .order-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 24px 20px;
    }

    .order-modal-scooter-img {
        width: 100px;
        height: 80px;
    }

    .order-modal-body {
        padding: 24px;
    }

    .order-modal-row {
        grid-template-columns: 1fr;
    }

    .order-modal-footer {
        padding: 0 24px 24px;
    }

    .order-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}