/* Desktop Contact Widget Styles */
.desktop-contact-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 30px !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 9999 !important;
}

/* Quick Messenger Buttons */
.quick-messenger-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-messenger-btn.telegram-btn,
.quick-messenger-btn.whatsapp-btn {
    background: #8b3a45;
    box-shadow: 0 4px 12px rgba(139, 58, 69, 0.3);
}

.quick-messenger-btn.telegram-btn:hover,
.quick-messenger-btn.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: #a14350;
    box-shadow: 0 6px 16px rgba(139, 58, 69, 0.4);
}

.quick-messenger-btn img {
    width: 22px;
    height: 22px;
}

/* Main Book Appointment Button */
.book-appointment-btn {
    background: #8b3a45;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Lora-Loc', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 58, 69, 0.3);
    white-space: nowrap;
}

.book-appointment-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 58, 69, 0.4);
    background: #a14350;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Form Styles */
.appointment-form {
    position: relative;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #99596f;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Radio Button Group */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    gap: 8px;
}

.radio-option input[type="radio"]:checked+.radio-label {
    border-color: #99596f;
    background: #f9f5f7;
}

.radio-label:hover {
    border-color: #99596f;
    background: #fafafa;
}

.radio-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

#method-telegram+.radio-label .radio-icon {
    background: #2ca8dd;
}

#method-whatsapp+.radio-label .radio-icon {
    background: #57d163;
}

#method-vk+.radio-label .radio-icon {
    background: #4a76a8;
}

#method-phone+.radio-label .radio-icon {
    background: #996464;
}

#method-max+.radio-label .radio-icon {
    background: linear-gradient(45deg, #27c7ff 0%, #a246ec 100%);
}

.radio-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.radio-option input[type="radio"]:checked+.radio-label .radio-icon {
    transform: scale(1.1);
}

.radio-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Checkbox Container */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    margin-top: 1px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #99596f;
}

.checkbox-label {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.checkbox-label a {
    color: #99596f;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: #8b3a45;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    background: #a14350;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 58, 69, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.active {
    display: block;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 10px;
}

.success-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

/* Hide on Mobile */
@media (max-width: 768px) {
    .desktop-contact-widget {
        display: none !important;
    }
}