/**
 * Norani Collaboration Form Styles
 */

.norani-collaboration-container {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.norani-collaboration-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.norani-collaboration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.norani-collaboration-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.norani-collaboration-label {
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 8px;
}

.norani-collaboration-required {
    color: #f44336;
    margin-right: 4px;
}

.norani-collaboration-input,
.norani-collaboration-select,
.norani-collaboration-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #333333;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.norani-collaboration-textarea {
    min-height: 120px;
    resize: vertical;
}

.norani-collaboration-input:focus,
.norani-collaboration-select:focus,
.norani-collaboration-textarea:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.norani-collaboration-group.has-error .norani-collaboration-input,
.norani-collaboration-group.has-error .norani-collaboration-select,
.norani-collaboration-group.has-error .norani-collaboration-textarea {
    border-color: #f44336;
    background-color: #fff5f5;
}

.norani-collaboration-field-error {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    font-size: 13px;
    color: #f44336;
}

.norani-collaboration-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.norani-collaboration-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.norani-collaboration-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.norani-collaboration-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.norani-collaboration-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.norani-collaboration-message.norani-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.norani-collaboration-message.norani-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.norani-collaboration-submit.loading {
    position: relative;
    color: transparent;
}

.norani-collaboration-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: norani-collaboration-spin 0.8s linear infinite;
}

@keyframes norani-collaboration-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .norani-collaboration-container {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .norani-collaboration-title {
        font-size: 24px;
    }
}
