/* Floating Quote Button */
.floating-quote-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-quote 1.5s ease-in-out infinite;
    cursor: pointer;
    border: none;
    outline: none;
}

.floating-quote-btn::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
    animation: ripple-quote 2s ease-in-out infinite;
    z-index: -1;
}

.floating-quote-btn::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.2;
    animation: ripple-quote 2s ease-in-out infinite 0.5s;
    z-index: -2;
}

.floating-quote-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
    animation: none;
}

.floating-quote-btn:hover::before,
.floating-quote-btn:hover::after {
    animation: none;
    opacity: 0;
}

@keyframes pulse-quote {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

@keyframes ripple-quote {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.quote-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.quote-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.quote-modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.quote-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.quote-modal-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.quote-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.quote-close:hover {
    background: #e0e0e0;
    color: #333;
}

.quote-form {
    display: grid;
    gap: 20px;
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quote-form-group {
    display: flex;
    flex-direction: column;
}

.quote-form-group.full-width {
    grid-column: 1 / -1;
}

.quote-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.quote-form-input,
.quote-form-select,
.quote-form-textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quote-form-input:focus,
.quote-form-select:focus,
.quote-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quote-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.quote-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.quote-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quote-success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.quote-success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.quote-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.quote-success-text {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-quote-btn {
        width: 70px;
        height: 70px;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
        font-size: 10px;
    }
    
    .floating-quote-btn::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    .floating-quote-btn::after {
        top: -16px;
        left: -16px;
        right: -16px;
        bottom: -16px;
    }
    
    .quote-modal-content {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .quote-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quote-modal-title {
        font-size: 1.5rem;
    }
    
    .quote-modal-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .floating-quote-btn {
        width: 65px;
        height: 65px;
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
        top: auto !important;
        font-size: 9px;
    }
    
    .floating-quote-btn::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    .floating-quote-btn::after {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
    }
    
    .quote-modal-content {
        padding: 20px 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Warning Message Styles */
.quote-warning-message {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: 1px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    animation: slideInWarning 0.3s ease-out;
    position: relative;
}

.quote-warning-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

.quote-warning-content {
    flex: 1;
    color: white;
}

.quote-warning-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.quote-warning-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.quote-warning-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.quote-warning-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInWarning {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive for warning message */
@media (max-width: 768px) {
    .quote-warning-message {
        padding: 15px;
        margin: 15px 0;
        gap: 12px;
    }
    
    .quote-warning-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .quote-warning-title {
        font-size: 14px;
    }
    
    .quote-warning-text {
        font-size: 13px;
    }
    
    .quote-warning-close {
        top: 8px;
        right: 8px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-image-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.captcha-image:hover {
    border-color: #667eea;
}

.captcha-refresh {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.captcha-refresh:hover {
    background: #5a6fd8;
}

.captcha-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.captcha-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.2s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.captcha-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.captcha-input.success {
    border-color: #28a745;
    background-color: #f8fff9;
}

.captcha-help {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.captcha-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.captcha-success {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

/* Mobile responsive for CAPTCHA */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .captcha-image-container {
        justify-content: center;
    }
    
    .captcha-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .captcha-refresh {
        padding: 6px 10px;
        font-size: 12px;
    }
}
