/**
 * Norani Pre-Registration Form Styles
 */

.norani-form-container {
    max-width: 600px;
    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-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 30px 0;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

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

.norani-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

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

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

.norani-form-input,
.norani-form-select {
    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-form-input:focus,
.norani-form-select:focus {
    border-color: #4CAF50;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.norani-form-input::placeholder {
    color: #999999;
}

.norani-form-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-form-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: #4CAF50;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.norani-form-submit:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.norani-form-submit:active {
    transform: translateY(0);
}

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

.norani-form-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.norani-form-message.norani-success {
    background-color: #e8f5e9;
    color: #4CAF50;
    border: 1px solid #c8e6c9;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .norani-form-container {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .norani-form-title {
        font-size: 24px;
    }
    
    .norani-form-input,
    .norani-form-select {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .norani-form-submit {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Loading State */
.norani-form-submit.loading {
    position: relative;
    color: transparent;
}

.norani-form-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: spin 0.8s linear infinite;
}

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

