/* Ask Block Modern Styles */
.ask-block {
    max-width: 600px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.ask-block-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
}


.ask-block-form {
    width: 100%;
}

.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background-color: #f8f9fa;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999999;
    opacity: 1;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Cloudflare-style verification section */
.verification-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cloudflare-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cloudflare-logo img {
    width: 120px;
    height: auto;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 14px;
}

.loading-dots {
    display: flex;
    gap: 3px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4CAF50;
    animation: loading 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Submit Button */
.ask-submit-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
}

.ask-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.ask-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.ask-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Required field indicator */
.form-group label::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.form-group:not(.required) label::after {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ask-block {
        max-width: 94%;
        margin: 20px auto;
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .ask-block-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .ask-submit-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .verification-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ask-block {
        max-width: 94%;
        margin: 15px auto;
        padding: 20px 15px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
}

/* Message Styles */
.ask-block-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.ask-block-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ask-block-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Loading state for submit button */
.ask-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
} 