.chat-contact-form { margin-top: 1rem; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; &.loading { opacity: 0.7; } &.loaded { opacity: 1; } .chat-contact-form-header { padding: 12px 15px; border-bottom: 1px solid #edf2f7; background-color: #f8f9fa; h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #333; } p { margin: 0; font-size: 14px; color: #718096; } } .chat-contact-form-container { position: relative; min-height: 200px; } .chat-contact-form-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #ffffff; z-index: 5; p { margin-top: 10px; color: #718096; font-size: 14px; } .loading-spinner { width: 30px; height: 30px; border: 3px solid #f3f3f3; border-top: 3px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; } } .chat-contact-form-iframe { width: 100%; min-height: 200px; height: auto !important; border: 0; display: block; background-color: transparent; transition: height 0.3s ease; padding: 16px; } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .contact-form { margin: 15px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); .header { padding: 15px; text-align: center; border-bottom: 1px solid #edf2f7; h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #333; } p { margin: 0; font-size: 14px; color: #666; } } .form-container { position: relative; padding: 15px; .loading { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.9); z-index: 10; .spinner { width: 30px; height: 30px; border: 2px solid #f3f3f3; border-top: 2px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; } } .success-message { padding: 20px; margin: 10px 0; background-color: #e6ffe6; border: 1px solid #b3ffb3; border-radius: 4px; color: #006600; text-align: center; font-size: 14px; } iframe { width: 100%; border: none; background: #fff; display: block; border-radius: 4px; min-height: 450px; } } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }