.fpm-modal {
    display: none;
    position: fixed;
    bottom: 2px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 84px;
    max-width: 90%;
    z-index: 9999;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(20px); 
    background: rgba(118, 154, 190, 0.3); 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.3); 
}

#fpm-form-phone input[type="tel"]::placeholder,
#fpm-form-destination input[type="text"]::placeholder {
  color: #808080;
  opacity: 1; 
}

.fpm-modal-content {
    padding: 20px;
    position: relative;
    display: flex;
    text-align: center;
    padding: 20px 20px 20px 20px;
    direction: rtl;
    text-align: justify;
    align-items: center; 
    justify-content: center; 
    height: 100%; 
}

.fpm-close {
    position: fixed;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.fpm-close:hover {
    color: #333;
}

.fpm-input-group{
    margin-top:-14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px; 
    position: relative;
    width: 100%;
    width: auto; 
    justify-content: flex-start; 
    align-items: center; 
    justify-content: center; 
}

/* Form styles */
#fpm-form-phone,
#fpm-form-destination {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#fpm-form-phone button:disabled,
#fpm-form-destination button:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

#fpm-form-phone button:disabled:hover,
#fpm-form-destination button:disabled:hover {
    background-color: #cccccc !important;
}

#fpm-form-phone input[type="tel"],
#fpm-form-destination input[type="text"] {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color:#ffffff;
    font-size: 14px;
    box-sizing: border-box;
    text-align: center;
    height:40px;
    padding-left: 50px; 
    margin-left: 0;
}

#fpm-form-phone button,
#fpm-form-destination button {
    width: 40px;
    background-color: #FF772C;
    color: white;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    height: 34px;
    position: absolute;
    font-size: 14px;
    left: 3px;
    top: 3px; 
    z-index: 2;
    display: flex;
    align-items: center; 
    justify-content: center;
    padding: 0;
    margin: 0; 
}

#fpm-form-phone button:hover,
#fpm-form-destination button:hover {
    background-color: #b68105;
}

.image1 {
  height: 65px;
  margin-left: 13px;
  margin-bottom: -9px;
  animation: float 2s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px); 
    }
}

#fpm-message-phone,
#fpm-message-destination {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
    text-align: center;
    width: 100%;
}

.modal-paragraph{
    width:230px;
    margin-left: 15px;
    margin-top: 10px;
    line-height: 1.4;
    font-size:11px;
}

/* استایل‌های جدید برای هماهنگی کامل بین دو فیلد */
.fpm-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#fpm-step-phone .fpm-input-group,
#fpm-step-destination .fpm-input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    margin: 0;
}

#fpm-step-phone .modal-paragraph,
#fpm-step-destination .modal-paragraph {
    width: 230px;
    margin-left: 15px;
    margin-top: 10px;
    line-height: 1.4;
    font-size: 11px;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .fpm-modal {
        width: 90%;
        height: 60px
    }
    
    .fpm-modal-content {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
         background: rgba(118, 154, 190, 0); 
        border-radius: 8px;
    }
    
    .modal-paragraph{
        font-size: 6px;
        width:100px;
        line-height: 1.4;
    }
    
    .image1{
        height: 44px;
        margin-left: 1px;
        margin-bottom: -12px;
    }
    
    #fpm-form-phone input[type="tel"],
    #fpm-form-destination input[type="text"] {
        width: 154px;
        border: 1px solid #ddd;
        border-radius: 10px;
        background-color: #ffffff;
        font-size: 14px;
        box-sizing: border-box;
        text-align: center;
        height: 40px;
        padding-left: 50px;
        margin-left: 0;
    }
    
    #fpm-form-phone,
    #fpm-form-destination {
        margin-right: -10px;
    }
    
    .fpm-input-group {
        margin-left: -18px;
    }
    
    #fpm-step-phone .modal-paragraph,
    #fpm-step-destination .modal-paragraph {
        font-size: 6px;
        width: 100px;
        line-height: 1.4;
    }
}