/* Main Wrapper */
.redtaxi-quote-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    background: #f9f9fa;
    padding: 20px;
}

.redtaxi-quote-container {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid #eaeaea;
}

/* Loader */
.redtaxi-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8) url('https://cdnjs.cloudflare.com/ajax/libs/gapi/0.0.3/assets/spinner.gif') no-repeat center center;
    z-index: 100;
}

/* Left Form Area */
.redtaxi-quote-form-section {
    width: 35%;
    padding: 25px;
    border-right: 1px solid #eaeaea;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.redtaxi-form-row {
    margin-bottom: 15px;
}

.redtaxi-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e1e3e6;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.redtaxi-input-group:focus-within {
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.2);
}

.redtaxi-icon {
    width: 40px;
    text-align: center;
    color: #c9302c;
    font-size: 14px;
}

.redtaxi-input-group input, 
.redtaxi-input-group select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px 12px 0;
    font-size: 13px;
    color: #555;
    outline: none;
    width: 100%;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="%23999" d="M0 0l5 5 5-5z"/></svg>') no-repeat right 10px center;
}

/* Buttons */
.rtq-text-btn {
    background: none;
    border: none;
    color: #c9302c;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.rtq-text-btn i {
    margin-right: 5px;
}

.rtq-main-btn {
    width: 100%;
    background: #db3434;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.rtq-main-btn:hover {
    background: #c9302c;
}

/* Remove Stop button */
.rtq-remove-stop-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 0 10px;
}
.rtq-remove-stop-btn:hover {
    color: #d32f2f;
}

/* Right Map Area */
.redtaxi-quote-map-section {
    width: 65%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.redtaxi-map-canvas {
    flex: 1;
    min-height: 400px;
    background: #e9e9eb;
    margin: 15px;
    border-radius: 8px;
    overflow: hidden;
}

/* Map Footer info */
.redtaxi-map-footer {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    border-top: 1px solid #eaeaea;
    background: #fff;
}

.rtq-info-box {
    display: flex;
    align-items: center;
}

.rtq-info-icon {
    font-size: 24px;
    color: #d32f2f;
    margin-right: 15px;
}

.rtq-info-text {
    display: flex;
    flex-direction: column;
}

.rtq-label {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rtq-value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Success/Error Message Area */
#rtq_message_area {
    margin-top: 15px;
    font-size: 13px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}
.rtq-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.rtq-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .redtaxi-quote-form-section {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    .redtaxi-quote-map-section {
        width: 100%;
    }
    .redtaxi-map-canvas {
        min-height: 300px;
    }
}

/* Modal Popup */
.rtq-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.rtq-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: rtq-popIn 0.3s ease-out;
}
@keyframes rtq-popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.rtq-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}
.rtq-modal-close:hover {
    color: #333;
}
.rtq-modal-icon {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 15px;
}
.rtq-modal-btn {
    margin-top: 20px;
    background: #db3434;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.rtq-modal-btn:hover {
    background: #c9302c;
}
