/* Floating Buttons Container */
#floatingButtons {
    position: fixed;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 50;
    transition: all 300ms ease-in-out;
    bottom: 2rem;
}

/* Back to Top Button */
#backToTopBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004ed5;
    color: #fee600;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 300ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
}

#backToTopBtn:hover {
    background-color: #2f58a5;
    transform: scale(1.05);
}

#backToTopBtn.opacity-100 {
    opacity: 1;
}

#backToTopBtn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 300ms;
}

#backToTopBtn:hover svg {
    transform: translateY(-0.25rem);
}

/* WhatsApp Button */
#whatsappBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004ed5;
    color: #fee600;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 300ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#whatsappBtn:hover {
    background-color: #2f58a5;
    transform: scale(1.05);
}

#whatsappBtn svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 300ms;
}

#whatsappBtn:hover svg {
    transform: scale(1.1);
}

/* Form Popup */
#formPopup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

#formPopup.hidden {
    display: none;
}

/* Form Container */
#formPopup > div {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 28rem;
    position: relative;
}

/* Close Button */
#closeForm {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #6b7280;
}

#closeForm:hover {
    color: #374151;
}

/* Form Title */
#formPopup h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f58a5;
    margin-bottom: 0.5rem;
    text-align: center;
}

#formPopup p {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

/* Form Layout */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Form Inputs */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"] {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 300ms;
}

#contactForm input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #004ed5;
}

/* Checkbox */
.flex.items-center {
    display: flex;
    align-items: center;
}

#verifyData {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border-color: #d1d5db;
}

/* Form Buttons */
.flex.flex-col.sm\:flex-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .flex.flex-col.sm\:flex-row {
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Submit Button */
#submitButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #004ed5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 300ms;
}

#submitButton:hover:not(:disabled) {
    background-color: #2f58a5;
}

#submitButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Clear Form Button */
#clearForm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 300ms;
}

#clearForm:hover {
    background-color: #d1d5db;
}

/* Validation States */
.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

input.border-red-500 {
    border-color: #ef4444 !important;
}

input.border-green-500 {
    border-color: #22c55e !important;
}

/* Loading Spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (min-width: 640px) {
    #backToTopBtn,
    #whatsappBtn {
        padding: 0.75rem;
    }

    #formPopup > div {
        padding: 2rem;
    }

    #formPopup h2 {
        font-size: 1.875rem;
    }

    #formPopup p {
        font-size: 1rem;
    }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm input[type="tel"] {
        padding: 0.75rem 1rem;
    }

    #verifyData {
        width: 1.25rem;
        height: 1.25rem;
    }
}