/* Floating Contact Form Styles */
.floating-form-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Arial', sans-serif;
    max-width: 270px;
}

/* Prevent page overflow caused by floating form */
body {
    overflow-x: hidden !important;
}

.floating-form-toggle {
    background: rgb(133,117,78);
    color: white;
    padding: 10px 14px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    min-width: 105px;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 10000;
}

.floating-form-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    background: rgb(133,117,78)!important;
}

/* Update button text when form is open */
.floating-form-container.form-open .floating-form-toggle .form-text::after {
    content: "";
    font-size: 10px;
    opacity: 0.8;
}

.form-icon {
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.floating-form-content {
    position: absolute;
    bottom: 55px;
    right: 0;
    width: 270px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    max-width: calc(100vw - 100px);
}

.floating-form-content.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.floating-form-header {
    background: rgb(133,117,78);
    color: white;
    padding: 12px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-form-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

.form-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.form-close:hover {
    opacity: 1;
}

.floating-form-body {
    padding: 15px;
}

.form-subtitle {
    color: #666;
    font-size: 11px;
    margin-bottom: 13px;
    text-align: center;
}

.floating-form-body .form-group {
    margin-bottom: 10px;
}

.floating-form-body .form-control {
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.floating-form-body .form-control:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.15);
    background-color: white;
    outline: none;
}

.floating-form-body .form-control::placeholder {
    color: #aaa;
    font-size: 11px;
}

.floating-send-btn {
    background: rgb(133,117,78);
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    display: block;
    margin-left: 0;
    margin-right: auto;
    min-width: 120px;
}

.floating-send-btn:hover {
    background: rgb(133,117,78);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.floating-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 13px;
    width: 100%;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    padding: 5px;
    overflow: hidden;
    box-sizing: border-box;
}

.recaptcha-container .g-recaptcha {
    margin: 0 auto;
}

.recaptcha-container iframe {
    border-radius: 4px !important;
    max-width: 100% !important;
}

/* Mobile responsive - Hide on mobile */
@media (max-width: 768px) {
    .floating-form-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .floating-form-container {
        display: none !important;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .floating-form-container {
        right: 20px;
    }

    .floating-form-content {
        max-width: calc(100vw - 40px);
    }
}

/* Success animation */
.floating-form-success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 