/**
 * Ride Request Pro - Frontend Styles
 */

.ride-pro-booking-container {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    color: #1e293b;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ride-pro-header {
    background: #000000;
    color: #ffffff;
    padding: 30px;
    text-align: center;
}

.ride-pro-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.ride-pro-form-wrapper {
    padding: 30px;
}

/* Step Navigation */
.ride-pro-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 8px;
}

.step-dot {
    width: 8px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #000000;
    width: 20px;
    border-radius: 4px;
}

/* Form Fields */
.ride-pro-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.ride-pro-step.active {
    display: block;
}

/* Trip Type Selector */
.trip-type-selector {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.type-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: all 0.2s;
    border-right: 1px solid #ddd;
}

.type-option:last-child {
    border-right: none;
}

.type-option.active {
    background: #000000;
    color: #ffffff;
}

.required {
    color: #ef4444;
}

.sga-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.type-icon {
    margin-right: 6px;
    font-size: 16px;
}

.ride-pro-group {
    margin-bottom: 20px;
}

.ride-pro-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ride-pro-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ride-pro-input-wrapper input,
.ride-pro-input-wrapper select,
.ride-pro-input-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    padding-left: 45px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.ride-pro-select {
    padding-left: 15px !important;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    z-index: 10;
    font-size: 18px;
}

.ride-pro-input-wrapper input:focus {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* Sector Toggles (Address/Airport) */
.sector-toggle {
    display: flex;
    background: #f5f5f5;
    padding: 3px;
    border-radius: 6px;
}

.sector-toggle button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    color: #666;
}

.sector-toggle button.active {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Counter Controls */
.counter-group { flex: 1; }
.counter-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 45px;
}

.counter-control button {
    width: 45px;
    height: 100%;
    border: none;
    background: #f9f9f9;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.counter-control button:hover { background: #eee; }

.counter-control input {
    flex: 1;
    border: none !important;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    height: 100%;
    padding: 0;
}

/* Vehicle Grid Enhancements */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.vehicle-option {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.vehicle-option:hover { border-color: #000; }
.vehicle-option.selected {
    border-color: #000;
    background: #fcfcfc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.vehicle-img { font-size: 32px; margin-bottom: 8px; }
.vehicle-option .name { display: block; font-weight: 600; margin-bottom: 5px; }
.vehicle-option .capacity { font-size: 12px; color: #666; }
.vehicle-option .capacity span { margin: 0 5px; }

/* Text Link Buttons */
.btn-text-link {
    background: none;
    border: none;
    color: #0052cc;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.btn-text-link:hover { text-decoration: underline; }

.ride-pro-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Buttons */
.ride-pro-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-ride {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.btn-next {
    background: #000000;
    color: #ffffff;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-next::after {
    content: '→';
    font-size: 18px;
    font-weight: 300;
}

.no-icon {
    padding-left: 15px !important;
}

.btn-next:hover {
    background: #222222;
}

.btn-prev {
    background: #f0f0f0;
    color: #333333;
    margin-right: 15px;
}

/* Success Message */
#ride-pro-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 20px;
}

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

/* User Badge & Header Btn */
.btn-login-modal {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.user-badge {
    background: rgba(0,0,0,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Modal Overlay */
.ride-pro-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.ride-pro-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
}

.modal-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.modal-tab.active {
    background: #ebf2ff;
    color: #0052cc;
}

.prefix {
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    border-right: 1px solid #eee;
    margin-right: 10px;
}

.modal-footer-text {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.modal-footer-text a {
    color: #0052cc;
    text-decoration: none;
    font-weight: 600;
}

input.invalid, select.invalid, textarea.invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

input.invalid:focus, select.invalid:focus, textarea.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}
