/* Haravy Contact Buttons Styles - Version 4.0.0 */

/* --- Floating Buttons --- */
.haravy-contact-buttons a {
    display: block;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.haravy-contact-buttons a:hover { transform: scale(1.05); }

#floating-document {
    width: auto; height: auto; padding: 8px 15px; background-color: #e9ecef; border-radius: 20px; display: flex; align-items: center; color: #007bff; text-decoration: none; font-family: Arial, sans-serif; font-weight: bold; font-size: 14px;
}
#floating-document .haravy-icon { width: 30px; height: 30px; margin-right: 8px; background-size: contain; background-repeat: no-repeat; }

#messengerbutton { width: 60px; height: 60px; border-radius: 50%; background-size: 60px 60px; background-position: center; background-repeat: no-repeat; }

#floating-sms { width: auto; height: auto; padding: 8px 15px; background-color: #0068ff; border-radius: 20px; display: flex; align-items: center; color: #fff; text-decoration: none; font-family: Arial, sans-serif; font-weight: bold; font-size: 14px; }
#floating-sms .haravy-icon { width: 30px; height: 30px; margin-right: 8px; background-size: contain; background-repeat: no-repeat; }

#floating-phone { background-size: 100% 100%; background-position: center; background-repeat: no-repeat; width: 170px; height: 60px; border-radius: 0;  box-shadow: none !important;}

.haravy-animated a { animation: haravy-shake 2.5s infinite; }
@keyframes haravy-shake { 0%, 50%, 100% { transform: rotate(0deg); } 5%, 15%, 25%, 35%, 45% { transform: rotate(13deg); } 10%, 20%, 30%, 40% { transform: rotate(-13deg); } }

/* --- Popup Form --- */
#haravy-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.haravy-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.haravy-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    overflow: visible; /* Allow button to sit outside */
}

.haravy-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 28%); /* Updated overlay color */
    z-index: 1;
    border-radius: 15px; /* Match parent */
}

.haravy-popup-form-container {
    position: relative;
    z-index: 2; /* Place form above the overlay */
}

.haravy-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%); /* Position it half-in, half-out */
    width: 36px;
    height: 36px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 16px; /* Reduced font size */
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    padding: 0;
    margin-right: 0px; /* Added margin-right: 0px */
}

.haravy-popup-form-container h3 {
    text-align: center;
    font-size: 1.8em;
    font-weight: 800;
    color: #fff; /* Fallback color */
    text-transform: uppercase;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    /* Gradient Text */
    background-image: linear-gradient(90deg, #2AADDF 0%, #282561 31.46%, #282561 52.61%, #282561 74.94%, #EF3E56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; /* Needed for background-clip to work properly */
}

#haravy-popup-form .form-row-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#haravy-popup-form .form-group {
    margin-bottom: 15px;
}

#haravy-popup-form input,
#haravy-popup-form textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: #333 !important;
    background-color: #f5f7fa !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03) !important;
}

#haravy-popup-form input:focus,
#haravy-popup-form textarea:focus {
    outline: none !important;
    border-color: #007bff !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1) !important;
}

#haravy-popup-form textarea {
    min-height: 100px;
    resize: vertical;
}

.haravy-popup-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 0px !important;
    line-height: 1.5 !important; /* Added line-height */
}

.haravy-popup-submit:hover {
    transform: translateY(-2px);
}

.haravy-form-message {
    display: none; /* Hide by default */
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}
.haravy-form-message.success,
.haravy-form-message.error {
    display: block; /* Show when it has content */
}
.haravy-form-message.success { background-color: #d4edda; color: #155724; }
.haravy-form-message.error { background-color: #f8d7da; color: #721c24; }

.form-privacy-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #fff !important; /* Changed to white with !important */
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 576px) {
    #haravy-popup-form .form-row-2-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
