/**
 * RMC Booking System - Public Styles
 * Version: 1.7.0beta
 */

/* ==========================================================================
   Variables & Base
   ========================================================================== */
:root {
    --rmc-primary: #1a1a2e;
    --rmc-primary-light: #16213e;
    --rmc-accent: #e94560;
    --rmc-accent-hover: #d13350;
    --rmc-success: #10b981;
    --rmc-success-hover: #059669;
    --rmc-warning: #f59e0b;
    --rmc-error: #ef4444;
    --rmc-gray-50: #f9fafb;
    --rmc-gray-100: #f3f4f6;
    --rmc-gray-200: #e5e7eb;
    --rmc-gray-300: #d1d5db;
    --rmc-gray-400: #9ca3af;
    --rmc-gray-500: #6b7280;
    --rmc-gray-600: #4b5563;
    --rmc-gray-700: #374151;
    --rmc-gray-800: #1f2937;
    --rmc-gray-900: #111827;
    --rmc-white: #ffffff;
    --rmc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --rmc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --rmc-radius: 12px;
    --rmc-radius-sm: 8px;
    --rmc-transition: all 0.3s ease;
}

/* ==========================================================================
   Booking Wrapper
   ========================================================================== */
.rmc-booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rmc-notice {
    padding: 15px 20px;
    border-radius: var(--rmc-radius-sm);
    margin-bottom: 20px;
}

.rmc-notice-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.rmc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--rmc-gray-200);
    padding-bottom: 0;
}

.rmc-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--rmc-gray-500);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--rmc-transition);
}

.rmc-tab:hover {
    color: var(--rmc-primary);
}

.rmc-tab-active {
    color: var(--rmc-primary);
    border-bottom-color: var(--rmc-accent);
}

.rmc-tab-icon {
    font-size: 20px;
}

/* Tab Content - Switch between services */
.rmc-booking-wrapper .rmc-tab-content {
    display: none !important;
}

.rmc-booking-wrapper .rmc-tab-content.rmc-tab-content-active {
    display: block !important;
}

/* ==========================================================================
   Progress Steps
   ========================================================================== */
.rmc-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.rmc-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--rmc-gray-200);
    z-index: 0;
}

.rmc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.rmc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rmc-gray-200);
    color: var(--rmc-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: var(--rmc-transition);
}

.rmc-step-label {
    font-size: 12px;
    color: var(--rmc-gray-500);
    font-weight: 500;
    text-align: center;
}

.rmc-progress-step-active .rmc-step-number {
    background: var(--rmc-accent);
    color: var(--rmc-white);
}

.rmc-progress-step-active .rmc-step-label {
    color: var(--rmc-primary);
}

.rmc-progress-step-completed .rmc-step-number {
    background: var(--rmc-success);
    color: var(--rmc-white);
}

/* ==========================================================================
   Form Steps
   ========================================================================== */
.rmc-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.rmc-step-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rmc-step-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--rmc-primary);
    margin-bottom: 25px;
    text-align: center;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.rmc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rmc-form-group {
    flex: 1;
}

.rmc-form-group-full {
    width: 100%;
}

.rmc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--rmc-gray-700);
    font-size: 14px;
}

.rmc-label-icon {
    margin-right: 5px;
}

.rmc-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--rmc-gray-200);
    border-radius: var(--rmc-radius-sm);
    font-size: 16px;
    transition: var(--rmc-transition);
    background: var(--rmc-white);
}

.rmc-input:focus {
    outline: none;
    border-color: var(--rmc-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.rmc-input::placeholder {
    color: var(--rmc-gray-400);
}

.rmc-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Route Info Display
   ========================================================================== */
.rmc-route-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--rmc-gray-50);
    border-radius: var(--rmc-radius);
    margin-bottom: 30px;
}

.rmc-route-info-item {
    text-align: center;
}

.rmc-route-info-label {
    display: block;
    font-size: 12px;
    color: var(--rmc-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.rmc-route-info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--rmc-primary);
}

/* ==========================================================================
   Vehicle Types Grid
   ========================================================================== */
.rmc-vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rmc-vehicle-type-card {
    background: var(--rmc-white);
    border: 2px solid var(--rmc-gray-200);
    border-radius: var(--rmc-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--rmc-transition);
}

.rmc-vehicle-type-card:hover {
    border-color: var(--rmc-gray-300);
    box-shadow: var(--rmc-shadow);
}

.rmc-vehicle-type-card.selected {
    border-color: var(--rmc-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.rmc-vehicle-type-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--rmc-gray-100);
}

.rmc-vehicle-type-image-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rmc-gray-100);
    color: var(--rmc-gray-400);
    font-size: 40px;
}

.rmc-vehicle-type-content {
    padding: 20px;
}

.rmc-vehicle-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.rmc-vehicle-type-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--rmc-primary);
    margin: 0;
}

.rmc-vehicle-type-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--rmc-accent);
}

.rmc-vehicle-type-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.rmc-vehicle-type-spec {
    font-size: 14px;
    color: var(--rmc-gray-600);
}

.rmc-vehicle-type-description {
    font-size: 14px;
    color: var(--rmc-gray-500);
    line-height: 1.5;
    margin-bottom: 15px;
}

.rmc-vehicle-type-select-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--rmc-primary);
    background: transparent;
    color: var(--rmc-primary);
    border-radius: var(--rmc-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--rmc-transition);
}

.rmc-vehicle-type-select-btn:hover {
    background: var(--rmc-primary);
    color: var(--rmc-white);
}

.rmc-vehicle-type-card.selected .rmc-vehicle-type-select-btn {
    background: var(--rmc-accent);
    border-color: var(--rmc-accent);
    color: var(--rmc-white);
}

/* ==========================================================================
   Return Trip Section
   ========================================================================== */
.rmc-return-trip-section {
    background: var(--rmc-gray-50);
    border-radius: var(--rmc-radius);
    padding: 25px;
    margin: 30px 0;
}

.rmc-return-trip-section h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--rmc-primary);
}

.rmc-section-description {
    color: var(--rmc-gray-500);
    margin-bottom: 15px;
}

.rmc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: var(--rmc-white);
    border: 2px solid var(--rmc-gray-200);
    border-radius: var(--rmc-radius-sm);
    transition: var(--rmc-transition);
}

.rmc-checkbox-label:hover {
    border-color: var(--rmc-gray-300);
}

.rmc-checkbox {
    display: none;
}

.rmc-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--rmc-gray-300);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: var(--rmc-transition);
}

.rmc-checkbox:checked + .rmc-checkbox-custom {
    background: var(--rmc-accent);
    border-color: var(--rmc-accent);
}

.rmc-checkbox:checked + .rmc-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rmc-white);
    font-size: 14px;
    font-weight: bold;
}

.rmc-checkbox-text {
    font-size: 16px;
    color: var(--rmc-gray-700);
}

.rmc-discount-badge {
    display: inline-block;
    background: var(--rmc-success);
    color: var(--rmc-white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* ==========================================================================
   Price Summary
   ========================================================================== */
.rmc-price-summary {
    background: var(--rmc-white);
    border: 2px solid var(--rmc-gray-200);
    border-radius: var(--rmc-radius);
    padding: 25px;
    margin: 30px 0;
}

.rmc-price-summary h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--rmc-primary);
}

.rmc-price-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--rmc-gray-100);
    font-size: 16px;
    color: var(--rmc-gray-600);
}

.rmc-price-line:last-child {
    border-bottom: none;
}

.rmc-price-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--rmc-primary);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--rmc-gray-200);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.rmc-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--rmc-gray-200);
}

.rmc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--rmc-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rmc-transition);
    text-decoration: none;
}

.rmc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rmc-btn-primary {
    background: var(--rmc-primary);
    color: var(--rmc-white);
}

.rmc-btn-primary:hover:not(:disabled) {
    background: var(--rmc-primary-light);
}

.rmc-btn-secondary {
    background: var(--rmc-gray-100);
    color: var(--rmc-gray-700);
}

.rmc-btn-secondary:hover:not(:disabled) {
    background: var(--rmc-gray-200);
}

.rmc-btn-success {
    background: var(--rmc-success);
    color: var(--rmc-white);
}

.rmc-btn-success:hover:not(:disabled) {
    background: var(--rmc-success-hover);
}

.rmc-btn-arrow {
    font-size: 18px;
}

/* ==========================================================================
   Account Section (Step 4)
   ========================================================================== */
.rmc-logged-in-message {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--rmc-gray-50);
    border-radius: var(--rmc-radius);
    margin-bottom: 20px;
}

.rmc-user-icon {
    font-size: 48px;
}

.rmc-welcome {
    font-size: 14px;
    color: var(--rmc-gray-500);
    margin: 0;
}

.rmc-user-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--rmc-primary);
    margin: 5px 0;
}

.rmc-user-email {
    font-size: 14px;
    color: var(--rmc-gray-500);
    margin: 0;
}

.rmc-account-note {
    text-align: center;
    color: var(--rmc-gray-600);
}

.rmc-account-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.rmc-account-option {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: var(--rmc-gray-50);
    border-radius: var(--rmc-radius);
}

.rmc-account-option h4 {
    margin: 0 0 10px 0;
    color: var(--rmc-primary);
}

.rmc-account-option p {
    color: var(--rmc-gray-500);
    margin-bottom: 20px;
}

.rmc-account-divider {
    display: flex;
    align-items: center;
    color: var(--rmc-gray-400);
    font-size: 14px;
}

.rmc-guest-note {
    text-align: center;
    padding: 20px;
    background: #fef3c7;
    border-radius: var(--rmc-radius-sm);
    color: #92400e;
}

/* ==========================================================================
   Review Section (Step 5)
   ========================================================================== */
.rmc-booking-review {
    background: var(--rmc-gray-50);
    border-radius: var(--rmc-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.rmc-booking-review h4 {
    margin: 0 0 25px 0;
    font-size: 20px;
    color: var(--rmc-primary);
}

.rmc-review-section {
    background: var(--rmc-white);
    border-radius: var(--rmc-radius-sm);
    padding: 20px;
}

.rmc-review-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rmc-gray-100);
}

.rmc-review-item:last-child {
    border-bottom: none;
}

.rmc-review-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.rmc-review-content {
    flex: 1;
}

.rmc-review-label {
    font-size: 12px;
    color: var(--rmc-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.rmc-review-value {
    font-size: 16px;
    color: var(--rmc-gray-800);
    font-weight: 500;
}

.rmc-review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--rmc-gray-200);
    font-size: 18px;
    font-weight: 600;
    color: var(--rmc-primary);
}

.rmc-review-total-price {
    font-size: 28px;
    color: var(--rmc-accent);
}

/* ==========================================================================
   Loading & Coming Soon
   ========================================================================== */
.rmc-loading {
    text-align: center;
    padding: 60px 20px;
}

.rmc-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--rmc-gray-200);
    border-top-color: var(--rmc-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rmc-coming-soon {
    text-align: center;
    padding: 80px 20px;
}

.rmc-coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.rmc-coming-soon h3 {
    margin: 0 0 10px 0;
    color: var(--rmc-primary);
}

.rmc-coming-soon p {
    color: var(--rmc-gray-500);
}

/* ==========================================================================
   Vehicle List (Shortcode)
   ========================================================================== */
.rmc-vehicles-wrapper {
    padding: 20px 0;
}

.rmc-vehicles-grid {
    display: grid;
    gap: 30px;
}

.rmc-vehicles-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rmc-vehicles-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rmc-vehicles-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.rmc-vehicle-card {
    background: var(--rmc-white);
    border-radius: var(--rmc-radius);
    overflow: hidden;
    box-shadow: var(--rmc-shadow);
    transition: var(--rmc-transition);
}

.rmc-vehicle-card:hover {
    box-shadow: var(--rmc-shadow-lg);
    transform: translateY(-5px);
}

.rmc-vehicle-card .rmc-vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.rmc-vehicle-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rmc-gray-100);
    color: var(--rmc-gray-400);
}

.rmc-vehicle-content {
    padding: 20px;
}

.rmc-vehicle-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--rmc-primary);
    margin: 0 0 10px 0;
}

.rmc-vehicle-description {
    font-size: 14px;
    color: var(--rmc-gray-500);
    line-height: 1.6;
    margin-bottom: 15px;
}

.rmc-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.rmc-vehicle-spec {
    font-size: 14px;
    color: var(--rmc-gray-600);
}

.rmc-vehicle-pricing {
    padding-top: 15px;
    border-top: 1px solid var(--rmc-gray-200);
}

.rmc-vehicle-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rmc-price-label {
    font-size: 14px;
    color: var(--rmc-gray-500);
}

.rmc-price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--rmc-accent);
}

.rmc-no-vehicles {
    text-align: center;
    padding: 60px 20px;
    color: var(--rmc-gray-500);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .rmc-booking-wrapper {
        padding: 15px;
    }
    
    .rmc-tabs {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .rmc-tab {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .rmc-progress {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .rmc-progress::before {
        display: none;
    }
    
    .rmc-progress-step {
        flex: 0 0 auto;
    }
    
    .rmc-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .rmc-step-label {
        font-size: 10px;
    }
    
    .rmc-step-title {
        font-size: 20px;
    }
    
    .rmc-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .rmc-route-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .rmc-vehicle-types-grid {
        grid-template-columns: 1fr;
    }
    
    .rmc-account-options {
        flex-direction: column;
    }
    
    .rmc-account-divider {
        padding: 20px 0;
        justify-content: center;
    }
    
    .rmc-step-actions {
        flex-direction: column;
    }
    
    .rmc-btn {
        width: 100%;
    }
    
    .rmc-vehicles-columns-2,
    .rmc-vehicles-columns-3,
    .rmc-vehicles-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .rmc-review-total {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .rmc-tab-label {
        display: none;
    }
    
    .rmc-tab {
        flex: 1;
        justify-content: center;
    }
    
    .rmc-tab-icon {
        font-size: 24px;
    }
}
