/* Quote Modal Styles */
.rcli-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.rcli-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: visible;
    z-index: 100000;
}

.rcli-modal-close {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: transparent;
}

.rcli-modal-close:hover,
.rcli-modal-close:focus {
    color: #000;
    background: #f0f0f0;
    text-decoration: none;
}

.rcli-quote-modal .trip-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rcli-quote-modal .trip-form-wrapper h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.rcli-quote-modal .form-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 28px;
}

.rcli-quote-modal .crifrmflds {
    margin-bottom: 18px;
}

.rcli-quote-modal .crifrmflds label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rcli-quote-modal .crifrmflds label .required {
    color: #ef4444;
}

.rcli-quote-modal .crifrmflds select,
.rcli-quote-modal .crifrmflds input[type="text"],
.rcli-quote-modal .crifrmflds input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #1f2937;
    appearance: none;
    -webkit-appearance: none;
}

.rcli-quote-modal .crifrmflds select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding: 1px 17px;
}

.rcli-quote-modal .crifrmflds select:focus,
.rcli-quote-modal .crifrmflds input[type="text"]:focus,
.rcli-quote-modal .crifrmflds input[type="date"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 100001;
}

.rcli-quote-modal .crifrmflds select:hover,
.rcli-quote-modal .crifrmflds input[type="text"]:hover,
.rcli-quote-modal .crifrmflds input[type="date"]:hover {
    border-color: #d1d5db;
}

.rcli-quote-modal .form-row {
    display: flex;
    gap: 16px;
}

.rcli-quote-modal .form-row .crifrmflds {
    flex: 1;
}

.rcli-quote-modal .crifrmbtn {
    margin-top: 28px;
}

.rcli-quote-modal .crifrmbtn button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.rcli-quote-modal .crifrmbtn button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.rcli-quote-modal .crifrmbtn button:active {
    transform: translateY(0);
}

.rcli-quote-modal .secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 12px;
}

.rcli-quote-modal .secure-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .rcli-modal-content {
        margin: 5% auto;
        padding: 28px 20px;
        border-radius: 12px;
    }

    .rcli-quote-modal .trip-form-wrapper h3 {
        font-size: 24px;
    }

    .rcli-quote-modal .form-row {
        flex-direction: column;
        gap: 0;
    }
}
