/* Custom Form Styles */
.yone-form-group {
    margin-bottom: 1.5rem;
}

.yone-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--yone-dark);
    font-size: 0.95rem;
}

.yone-form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--yone-dark);
    background-color: #f8f9fa;
    background-clip: padding-box;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.yone-form-control:focus {
    color: var(--yone-dark);
    background-color: #ffffff;
    border-color: var(--yone-primary-light);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(42, 157, 143, 0.15);
}

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

.yone-form-control:hover {
    background-color: #ffffff;
}

.yone-form-control-light {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.yone-form-control-light:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--yone-white);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.yone-form-control-light::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.yone-form-control {
    min-height: 150px;
    resize: vertical;
}

.yone-form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.yone-form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.75rem;
    margin-right: 0;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.yone-form-check-input:checked {
    background-color: var(--yone-primary);
    border-color: var(--yone-primary);
}

.yone-form-check-label {
    font-size: 0.95rem;
    color: var(--yone-dark);
}

.yone-form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--yone-dark);
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    appearance: none;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.yone-form-select:focus {
    border-color: var(--yone-primary-light);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(42, 157, 143, 0.15);
}

.yone-form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--yone-secondary);
}

.yone-form-error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--yone-danger);
}

/* Form Validation Styles */
.yone-form-control.is-invalid {
    border-color: var(--yone-danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.yone-form-control.is-valid {
    border-color: var(--yone-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
